NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Skipped test in TestStand

Hi,
In TestStand when the operator skips a test step, I'd like to set a custom condition to display a warning message to tell the operator that this is not a completed test at the end of the whole test.
How would I do that.
Thanks

Dan
0 Kudos
Message 1 of 3
(3,214 Views)
Two ways: One way is to search the report file for the word "skipped". Display the message if the word is found. The other method is to create a statement step after each test step you want to check. In the statement step, check if RunState.PreviousStep.Result.Status is "skipped". If so, set a flag. At the end of the sequence, check the flag and display the message if the flag is true.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(3,198 Views)
Hi tbob,
Thanks for the advice. From there, I did take a different approach by generate a pop-up warning message at the end of sequence where I set precondition for the execution is to set RunState.Sequence.Main[id of individual step].Result.Status =="skipped"
It works fine except that you have to enter so many preconditions for each step. But in my case I don't have much, so it is OK.

Dan
0 Kudos
Message 3 of 3
(3,170 Views)