NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the sequence pass/fail status be controlled in Test Stand?

I have a sequence that contains a DoWhile loop. Within the loop are 5 or 6 steps that are executed. If the result of those steps is a fail the loop runs again until it passes or meets its allowable number of iterations. My problem is that if an iteration fails and then passes the result for the sequence is failed. Can the pass/fail status be controlled via an expression etc? I know I can create a subsequence and loop in it with the properties. I am just curious to know if there is a way it can be done like I have explained.

 

Thanks in advance for any help,

Troy

0 Kudos
Message 1 of 3
(4,084 Views)

Troy,

You might be able to use the RunState.ThisContext.SequenceFailed property.  Set this equal to False after your loop runs, and the sequence should report as if it passed.

John B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(4,080 Views)

Hi,

maybe you also have to uncheck "Step Failure Causes Sequence Failure" option under Run Options in your Step Settings pane of your test steps in the loop in order to get your sequence passed.

 

Regards,
gedi
0 Kudos
Message 3 of 3
(4,057 Views)