NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

collecting all the failed steps in a seperate subsequence

Hi,
 
I know this could be done in some crude way, but only if there is already a built in example, it would be greatly helpful for me.
 
I want to collect all the steps that have failed in a particular sequence and form a separate subsequence out of them.
 
how to do that.
 
One more thing I want to know is, Can I define some conditions/filters (using Step Types) at the sub sequence level, upon the failure of which the subsequence should automatically skip at the runtime.
 
Thanks a lot.
Regards
Sreedhar.
0 Kudos
Message 1 of 2
(2,820 Views)
Hi Sreedhar,
 
Could you please explain more of what you are trying to accomplish in terms of collecting the steps that fail and putting them into a subsequence.
 
Every step has a status property that indicates if the step has passed or failed. So you could at the end of your steps, add a for loop that loops through your status flags and check whether certain steps have failed or not.
 
In terms of having subsequences skip at run-time based upon failures, you can easily set up some pre-conditions (if step failed, passed, etc) for that subsequence by right-clicking on the sequence call step and selecting properties. Then under the General tab, select Preconditions.
 
Hope this helps!
 
Best Regards,   
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(2,810 Views)