The test language

Most tests consist of a sequence of action lines, with their action keywords and arguments. Actions are available as built-in actions, or can be created as user actions, implemented either with action definitions or programmed in an automation harness.

A TestArchitect action has the following syntax:

action name <argument 1\> ... <argument n\>

  • action name:

    The action name is the action command that tells TestArchitect what operation to perform. There are three types of actions: built-in, user-defined, and user-scripted (see creating and using actions).

  • arguments:

    The number of action arguments and types depends on the how the action is defined. Arguments can be of types String, Date, Value Set, Entity, Element, etc. (see Argument types).

Example syntax of an enter action:

TestArchitect supports a number of special features to provide the test developer with more control over test values and the flow of the test execution. The most important ones are:

  • Expressions and variables, which allow for calculating values and storing them for later use.
  • Control flow actions, like if and while.
  • Data sets.

Variables
Variables are placeholders that contain values for later use in one or more action lines, and which allow for easy substitution of values within given action lines.

Expressions
An expression is any combination of literal values, variables, operators, and functions that follows a set of rules, and which needs to be evaluated before it can be used.

Functions
Functions are prewritten operations which you can reference by name within your expressions to produce values needed by your test.

Control flow actions
Control flow actions let you change the order in which action lines are executed.

Operator precedence
Operator precedence determines the order in which operators are evaluated in TestArchitect. Operators with higher precedence are evaluated first.

Working with checks
In TestArchitect, a check compares and verifies expected behavior against actual observed behavior during a test. It’s good practice to incorporate checks in test procedures to verify that the procedures are running as expected.

Error handling and recovery
Handling unanticipated errors, warnings or test failures.

Timing
Successful testing requires that the automation correctly handle the varying response times of a system under test, and not to attempt to continue with interactions before the system is finished with the previous function.

Ignoring actions
When the ignore modifier (the string “ignore”, surrounded by angle brackets) is used as an argument value in supported actions, TestArchitect bypasses that action during test execution and continues at the subsequent action line.

Image comparison techniques
TestArchitect offers you two methods for verifying the correctness of images produced by a tested application: pixel-by-pixel comparison and keypoint detection.

Text recognition techniques
TestArchitect offers you two methods for recognizing text produced by an AUT: Optical Character Recognition (OCR) and Graphics Device Interface (GDI) techniques.

Stopping tests on timeout
You can set a timeout for the test case to ensure that the test execution does not take longer than it should.


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400