From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

step status

Solved!
Go to solution

Is there a way to find the total number of steps failed during a given execution. I see that step status information is available but that is for individual steps. http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/reftopics/stepproperties/

I am looking to somehow keep track of the number of comparision step fails (numeric limit test step, multiple numeric limit test step or string test step) for a given execution. Should also track the steps failed if they are in subsequence.

Thanks.

*************************************************
CLD
*************************************************
0 Kudos
Message 1 of 2
(2,710 Views)
Solution
Accepted by topic author lvrat

Good afternoon,

 

Add the 'SequenceFilePostStepFailure' callback to your sequence.   Keep track in the callback for the 'type' of tests that failed by using a case statement on the test type and a numeric counter.  Increment the counter each time a specific step fails.  You could make this a fileglobal and have it print out in the report.  With a bit more work you could push the value for display in your operator interface, if desired.

 

Thanks,

 

PH

Message 2 of 2
(2,704 Views)