Skip a Step in Sequence File if Runtime Error Occurred

Updated Sep 26, 2024

Reported In

Software

  • TestStand

Issue Details

  • I need to skip some steps if any of the previous step has a runtime error.

Solution

According to the List of Engine Callbacks, the SequenceFilePostStepRuntimeError callback will be called after a step in the sequence file generates a run-time error. You can perform the following steps to skip a step when run-time error occurs:
1. Create a boolean File Globals variable in the sequence file.
2. Set the boolean File Globals variable to true inside the SequenceFilePostStepRuntimeError callback.
3. In the step you wish to skip, set the Precondition Expression to !FileGlobals.<VariableName>.