Hello cc,
For your first question, you can use the TestStand API to set the
Engine.StationOptions.AlwaysGotoCleanupOnFailure property to True. This has the same affect as setting the Station Options manually.
You second question is more tricky. One way that you can have the other TestSockets go to their clean up is by sharing a FileGlobal. If one TestSocket fails, then it would set this variable to true. Then all of the other TestSockets would check this variable before each step to see if there is an error; if so, then they would branch to clean-up of that sequence. You will most likely want to use the
ProcessModelPreStep and
ProcessModelPostStepFailure Engine callbacks in your process model. They will fire at the appropriate time in your
client sequence file (not in the process model where you defined them). I hope this helps. Have a greay day!
Best Regards,
Software Engineer
Jett R