NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

change step status from "error" to "failed"

Solved!
Go to solution

I'm using TestStand 2012   and I want to do the following:

1. Ignore a Runtime Error from a  particular step.

2. If receiving an error from that step, jump to 'Cleanup'.

3. Change the status of that step to 'Failed' instead of 'Error'.

 

I was able to satisfy issue 1 above by selecting 'Ignore Run-Time Errors' from 'Run Options'.

I was able to satisfy issue 2 above by creating a 'Custom Condition' of Step.Result.Status=="Error" from 'Post Actions'.

I have not been able to satisfy issue 3 above.  I tried 'Step.Result.PassFail=False' as a 'Post-Expression' from 'Expressions' but that didn't work.  The step I'm working with started out as an Action step.  Then I changed it to a Pass/Fail step in hopes that I could change 'Status Expression' from 'Expressions' but I couldn't.  I would rather leave the step as an Action step if I could.

0 Kudos
Message 1 of 3
(5,598 Views)

There is an another forum post regarding changing status of the step. Solution provided in the other post might help in solving your issue.

 

- Shashidhar

Message 2 of 3
(5,546 Views)
Solution
Accepted by topic author VI_Joe

Thanks!  This did help.  I used Option 1.

0 Kudos
Message 3 of 3
(5,534 Views)