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?
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.