Solution
Note: modifying the default process model of TestStand may result in unexpected behaviors. Save a copy of the original sequence file before performing any change.
You can use a Precondition to allow a Message Popup or Sequence Call step to run if any of those conditions is met.
- Open the Sequential Model file located in %TestStand 2019%\Components\Models\TestStandModels\SequentialModel.seq.
- Navigate to the Single Pass sequence (execution entry point).
- Insert a Message Popup step after the MainSequence Callback step.
- Right click the Message Popup step and select New Subsequence from Steps > Without Preview.
- Navigate to the Step Properties tab and select Preconditions.
- In the Precondition Expression text field, enter the following expression: AnyOf(RunState.Sequence.Main["MainSequence Callback"].Result.Status == "Terminated" , RunState.Sequence.Main["MainSequence Callback"].Result.Status == "Failed")