From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UUT Result = Failed, but all steps = Passed?

Solved!
Go to solution

I've allowed some of my steps to be repeated if they fail, but not using the loop function. If the step gets recorded as a fail, I use the SequenceFilePostStepFailure call back to roll back a step and repeat it if the user wants to.

 

This all works fine, but the result recorded ends up like this:

Sketch.png

How do I stop the UUT from recording a fail even though all steps pass?

0 Kudos
Message 1 of 3
(2,818 Views)
Solution
Accepted by topic author Lbee11

The RunState.SequenceFailed property is set if the "Step Failure Causes Sequence Failure' property is enabled in the Run Options section of the step settings. If you're manually changing the step status, you should also set the SequenceFailed property appropriately. Try something like 'RunState.Caller.RunState.SequenceFailed=False' in the SequenceFilePostStepFailure callback.

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
Message 2 of 3
(2,790 Views)

Do you find root cause of this issue?

I will appreciate if your share your findings, thanks.

0 Kudos
Message 3 of 3
(1,913 Views)