Apply an error policy

The error policy specifies the command behavior if an error occurs during the command execution. In your test, for each command, you can specify the error policy to use. It is possible to apply the error policy to multiple commands at once: All selected commands will receive the same error policy.

The following error policies are available:

  • Ignore: (default) Continue with the test flow even if the command fails. Marked as failed in the report.

  • Abort: Terminate the execution of the test and any other calling test (embedded test).

  • Break: Inside a loop, stop the current loop and continue to the next command after the loop. Outside of a loop, acts as an abort.

  • Continue: Inside a loop, stops the current iteration and continues to the next iteration. Outside of a loop, acts as an abort.

  • Catch: Use the result as input to a condition statement. Marked as Catch in the report (not success or failure).

To select an error policy:

  1. In the test editor, double-click the command.

  2. In the command parameter dialog box, do the following:

    1. For the On-fail Result parameter, in the Value column, select a value from the list.

    2. Click APPLY.