NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Edit the result (pass/fail) of a subsequence

Solved!
Go to solution

I have a sequence that looks like this:

 

MainSequence

Step1

Step2

SubSequence

DoWhile (Test1 fail and time has not exceed 30 sec)

  Test1

End

Step3

 

The DoWhile loop run Test1 over and over until either Test1 passes or time has exceed 30 seconds. Usually, Test1 actually pass. So, on the steps screen, Test1 would actually be shown as "PASS", but when the SubSequence exits, the SubSequence would be shown as "Failed". I think this is because Test1 failed a few times before passing.

 

How do I change it so that the SubSequence would be shown as "PASS" in the report as long as Test1 passed once?

 

Thanks.

0 Kudos
Message 1 of 6
(3,580 Views)

Try using the "Looping" properties of the SequenceCall step ( the one that calls your Subsequence running Test1 ) to the following:

 

Loop Type: Pass/Fail Count

 

Uncheck the box 'Record Result of Each Iteration'

Stop after 1 iterations PASS.

 

You may need to set a maximum # of iterations that is somehow based on 30s? Is that possible given the length to run one test?

 

Thanks,


PH

 

 

0 Kudos
Message 2 of 6
(3,567 Views)

I don't think that's not going to work?Smiley Indifferent

 

By using the "looping" properties of my SequenceCall to my SubSequnence, I would be looping my SubSequence. That's not what I want to do. I only want to loop Test1. Test1 is inside my SubSequence.

0 Kudos
Message 3 of 6
(3,562 Views)

HI Bladhart,

 

just for understanding whats the reason for making a failed sequence to pass ?

Maybe this will help,

There is flag in StepSettings Pane RunOptions "Step Failure Causes Sequence Failure"

If disabled the calling sequence is Passed if SubSequence is Failed, but this Step is in Report Failed !! 

It was failed of course so why renaming to passed ? If only the Report is neccesary to be passed. Rename it

in the ResultList from Failed to Passed.

 

Regards

Juergen

 

  

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 6
(3,562 Views)

I am sorry. The question was a bit confusing. Let's try to re-phase this so it is easier to explain.

 

DoWhile

  SomeStep1

  SomeStep2

  Test1

End DoWhile

 

I would like run Test1 over and over again until it passes or up to 30 times. In other words, I want my sequence to "PASS" as long as Test1 passed once. I don't care that it failed 15 times before it passes. All I care is that Test1 managed to pass once. If Test1 passes once out of 30 tries, I still want my sequence to "Pass". If Test1 tried for 30 times, but still failed, then I want my sequence to "Fail".

0 Kudos
Message 5 of 6
(3,558 Views)
Solution
Accepted by topic author Bladhart

Hi Bladhart,

 

Maybe this small example

will solve your task,

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 6 of 6
(3,555 Views)