NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Running a sequence of steps in a loop and passfail status

In a subsequence, I would like to give a step 2 chances to pass. The step requires a setup step, so I cannot using the looping step property. I am using a while loop with "Locals.i < 2 && ! Locals.pass".

 

The problem: if the step fails the first time through and passes the second time through, the sequence is marked as failed.

 

Is the best way to fix this adding a statement like

ThisContext.SequenceFailed = False

with a precondition to be executed if the test passed?

0 Kudos
Message 1 of 2
(2,612 Views)

In the step's properties, go to Run Options.  There is a checkbox for Step Failure Causes Sequence Failure.  Uncheck that.  You can later have a Pass/Fail step with no adapter to cause a sequence failure if you still have a fail condition.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,603 Views)