NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

SEQUENCE CALL IS PASSED WHEN THE STEPS ARE SKIPPED

Hi All,

 

When the steps are skipped, the status of the  sequence call for the steps was given the status as Passed. Is there any way to make the sequence call status to "Failed" when the steps inside are "Skipped". I had attached a snip of the result. Pls Help

 

A big Thanks in Advance!!!

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

I think you would need a specific test within the subsequence that tests to see if the step was skipped.  You could add a PassFail Test after the step and use an expression like RunState.PreviousStep.Result.Status != "Skipped".

0 Kudos
Message 2 of 3
(1,227 Views)

The reason the sequence is passing is because by default a sequence is passing.  Since there was no test that failed the sequence passes.

 

What exactly are you trying to do here?  Is the step skipped at run-time?  If so why is it being skipped at run-time?  If you have a condition that is dynamically skipping the step at run-time then you would want to set the SequenceFailed property at the same time if you want the sequence to fail.

 

If you want the test to fail if a developer sets the step to skipped and runs the test that is a different situation.  In this situation you want to use a callback like PostResultListEntry and set to SequenceFailed property if any step is skipped.

 

 

David Wilt
The New Standard LLC
0 Kudos
Message 3 of 3
(1,213 Views)