NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

processing run-time error

For a call to a vi (step Action) which fails (volontary), I would like to analyse the status. If failed, and if the error msg is the one expected, also I would like to consider the test as "Passed". How to proceed?
0 Kudos
Message 1 of 2
(2,784 Views)
Hi Schumi,

To modify the status and error message info out of your step you can use runstate property like this :

- For status :
(if your step is in Setup group change "Main" to "Setup" in the following expression)
RunState.Sequence.Main["name of your step"].Result.Status

- For error msg:
RunState.Sequence.Main["name of your step"].Result.Error.Msg

You can evaluate the error message and change the status using the previous expression in a "statement" step.

I hope this help.

Benjamin
National Instruments France
0 Kudos
Message 2 of 2
(2,784 Views)