NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set subsequence to pass or fail from a step

Hello All,

I have been struggling to find a way of causing/programming a subsequence to fail (or Pass) based on the contents of an if, else if statement. I have tried the obvious things like setting the Run Options>Step Failure Causes Sequence Failure. And right click the step and set Force Fail, this didnt work, I tried but couldnt follow similar posts like adding ... Parameters.Step.Result.PassFail = False.

 

The main thing I need to achieve is to show the FAIL (in red) on the sequence as it runs and for this to filter thro to the report file but where the the report shows the subsequence involved failed, regardless of the quantity of passes.

 

Advice Appreciated.

Regards Chris

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

Hi,

 

Did you use a Pass/Fail StepType?

 

If you switch to Sequence Adapter, then select a Pass/Fail Step Type rather than use the SequenceCall Step Type.

 

Now when you set the Step.Result.PassFail it will record as a Pass Fail result.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,060 Views)