06-03-2017 08:10 AM
When I am in a subsequence and a step fails, I want to immediately exit the subsequence and go straight to the main sequence cleanup steps.
What is the most efficient way to do this? Thanks!
06-03-2017 02:24 PM
You can do it in the following way:
- set Post-Action for test step in subsequence to "On Fail" -> "Go to step: Cleanup";
- in Main Sequence, for subsequence step also set up Post-Action "On Fail" -> "Go to step: Cleanup".
Sincerely, kosist90
06-03-2017 06:35 PM
Thanks. That makes sense.
I have a dialog box that has the a test operator answer a YES/NO question. The boolean is the steps PASS or FAIL condition. I also have an ABORT button on the dialog VI. If the ABORT button is pressed I want the subsequence to go to cleanup and then then go to the main sequence cleanup.
How do I satisfy a FAIL conditoin for the subsequence and the ABORT button being pressed to go to the cleanup of the subsequence and then the main sequence cleanup?
06-04-2017 01:57 AM
When user will press "Abort" button, what status should sequence have? Fail, or Terminated?
Basically, you can find out, what button was pressed, and then based on that do the action: terminate sequence vi TestStand API - ActiveX step call; or go to step, which will redirect sequence to go to next step, or to cleanup; or "simulate" fail result by failing of the step. Here is https://forums.ni.com/t5/Example-Program-Drafts/Which-Button-was-Pressed-in-my-TestStand-Message-Pop... nice example of how to find out, what button was pressed. Basically, you have number of button, thus you can use simple If...Else If.. Else structure, to handle pressed buttons.
Sincerely, kosist90