01-29-2020 03:26 AM
Hi all,
I try to manage the "goto cleanup on sequence failure" mode programmatically (without using station options).
For that, I'm using callback SequenceFilePostStepFailure and I perform a Terminate.
So the sequence terminates directly after failure but the sequence state is "Terminated".
I'd like to have state "Failed"
How can i do that?
Thanks for your help
Solved! Go to Solution.
01-29-2020 07:57 PM
I don't think you need the Terminate. Remove that step and it should just go to cleanup in all sequences until PostUUT and it should be a failed status.
01-30-2020 09:39 AM
Hi,
By default, with failure doesn't go to cleanup and finish main sequence directly.
To do that, I found the solution. It's necessary to perform :
- Locals.RunState.StepGroup= "Cleanup",
- Locals.RunState.NextStepIndex = 0