11-10-2013 09:34 PM
Hello,
Requirement
From my main sequence, I'd like to call a subsequence of steps. If any of the tests in the subsequence fails, the main sequence should skip all remaining tests for this UUT.
Plan
I was planning to have the subsequence return a boolean flag back to the main sequence, which would check this flag and skip to the Cleanup step group if necessary. Most of the subsequence tests are done in a loop, so I was thinking of this approach:
bool allPassed = true; foreach (itemsToTest) { allPassed = allPassed && currentTestResult; } return allPassed;
Issue
While this is easy to do with a Pass/Fail test, I couldn't find a way to get the boolean result of a Numeric Limit test.
Questions
Thanks!
Solved! Go to Solution.
11-11-2013 06:54 AM
Using Post Actions would be so much easier. You can setup the sequence to do various things on a failure, including going to a step that you specify (ie Cleanup).
11-11-2013 10:59 AM
You might also consider using the station option "Goto cleanup on sequence failure" instead.
-Doug
11-11-2013 07:55 PM