NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Determining pass/fail status if test is terminated

If a test is terminated, UUTResult.Status is set to "Terminated". Is the pass/fail status saved elsewhere, so that when I log the data I can determine if the test was passing or failing at the time it was terminated?
0 Kudos
Message 1 of 4
(3,719 Views)
Hi,

I dont think it is saved. But you could capture the result in the SequenceFilePostStep. At this point the step result is still avaliable. You could save the result temporaryly.

Regards Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,719 Views)
Hello Mark -


You may want to try monitoring the Property Path "Locals.ResultList[0].TS.SequenceCall.Status" from within your process model after the MainSequence Callback, you'll definitely be able to sniff for Passed/Failed status, Error is a bit trickier since if you don't 'ignore' the error, the report's status will be 'Error' and if you do ignore the error, your status will be Terminated, but the only place the Error will be tracked will be in the per-step information.

To aid in monitoring what happens when a Terminate occurs, I recommend you enable the 'break while Terminating' and 'Trace while Terminating' options in TestStand.
--Regards,

Elaine R.
National Instruments
http://www.ni.com/support
0 Kudos
Message 3 of 4
(3,719 Views)
Hi Mark,

Expanded on Elaine's comment.

'Locals.ResultList[0].TS.SequenceCall.ResultList[]' will contain the result for the last step executed before termination. Althought the status will contain "Terminated' the Pass/Fail will reflect the result of the Test.

Hope this helps.
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,719 Views)