NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Force a sub-sequence to return "Skipped" status

Hi,

I would like to force a sub-sequence to return a "Skipped" status to the caller. The decision to run or not the sub-sequence is done inside the sub-sequence itself.

Regards,
Yannick Willener
0 Kudos
Message 1 of 2
(3,011 Views)
Yannick -
Using a statement step in the called sequence, you could execute the following expression:

RunState.Caller.Step.Result.Status "Skipped"

The status at this point in time is "Running", so by setting it to "Skipped", TestStand should ignore resetting the status back to any other status.

Scott Richardson
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 2
(3,011 Views)