Events

The Conditional Execution tab enables you to define test-level conditional settings as explained below. Conditional Execution settings enable you to define a procedure to execute and an additional action to take when a timeout or a error condition is encountered at runtime. For example, on encountering a step error, you could determine the test to terminate or to continue running.

These conditional processing settings apply to a test as a whole. A similar functionality is available for individual test steps, enabling you to test for error or timeout conditions and execute specific actions in case the condition is encountered. The step-level takes precedence over the test-level conditional configuration.

Events tab

The pane displays the list of predefined conditions – TimeOut or Error – a script is monitored for, while for each condition the associated procedure and action is displayed.

Check the Step TimeOut option if you want the test to be monitored for any step time-out.

Check the Step Error option if you want the test to be monitored for errors (other than a timeout) encountered in any of the test steps.

Specify the procedure associated with an error or timeout condition by clicking the control of the Procedure field and selecting a procedure – local or shared (external) – from the the drop-down pane that appears.

For the selected procedure you can view the defined arguments by clicking the control of the Input Arguments field, which displays a cascading table-format pane containing the argument list. To specify the actual runtime argument(s) enter the desired values in the Current Value field(s).

In addition to executing the procedure, an action to take can also be configured, possible choices being the following:

  • Continue: When selected, the procedure is executed and the test continues running.
  • Exit test: When selected, the procedure is executed and the test exits.

When working with multiple scripts opened at the same time (MDI functionality), this tab displays information for the currently active test script.