04-04-2012 03:14 PM
I'm using the TestStand "SequenceFilePostStep" engine callback to run several short subsequences. If any of these short subsequences in this callback fail, I want the main sequence to detect this and also fail.
I can detect the sequence failure when stepping inside the "SequenceFilePostStep" callback by reading RunState.SequenceFailed. However when I'm returned to MainSequence this variable is set to False. I've also tried searching the knowledge base and used the alternatives "ThisContext.RunState.SequenceFailed" and "RunState.Main.RunState.SequenceFailed" - all are set to false. Is there a variable that remembers the status of the engine callback "SequenceFilePostStep", or do I need to setup a file global to pass this status back to the main sequence?
Solved! Go to Solution.
04-04-2012 05:40 PM
Place a statement step as the last step in SequenceFilePostStep (very bottom of Cleanup).
Give it a precondition of: RunState.SequenceFailed
Set the Expression to: RunState.Caller.RunState.SequenceFailed = True
If you want to see what failed on the report you will have to do additional steps.
04-04-2012 06:01 PM
Thanks JiggaWax. Works perfectly.