NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Immedialty goto cleanup on failure

Solved!
Go to solution

Hi all,

 

I know that it exists this option in station option global for all test socket.

in my case, I'd like to control and handling manually failure for each test socket.

for that, I'm using callback SequenceFilePostStepFailure.

I manage Retry, Continue, Force to Pass.

But I don't know managing go to cleanup

 

Do you have an idea how I can do that?

 

Thanks for your help

 

0 Kudos
Message 1 of 3
(2,316 Views)

RunState.Caller.GotoCleanup = True

Also will need to set:

RunState.Caller.RunState.SequenceFailed = True

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(2,312 Views)
Solution
Accepted by topic author maxmont

Thanks but if you do that, I will perform the first "cleanup" and after perform all next steps.

I want to finish in case of failure.

But I've found just after raising a message.

I perform a terminate which finishes immedialty the test and performes all the cleanup

 

 

0 Kudos
Message 3 of 3
(2,310 Views)