NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run sequence clean up on test fail case

Hi,

 

How can I configure Teststand 4.2.1.83 to run subsequence cleanup if any individual test fails? Main sequence clean up must be run as well on fail case.

 

BR,

Jick

0 Kudos
Message 1 of 4
(4,300 Views)

Hello Jick,

 

I guess the only way to do this is to modify the post actions for each step : On fail : Call sequence

 

you can do this programmatically in the Setup step group for example.Or do this manually

 

Regards,

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 2 of 4
(4,298 Views)

I would turn on the station option to "Go to cleanup on sequence failure", add a call to your subsequence cleanup in the cleanup of your main sequence, give the call to your subsequence the precondition that RunState.SequenceFailed must be true.

 

Actually, I think I might have misunderstood what you want. I think all you need to do is turn on the station option "Immediately goto cleanup on sequence failure". I think the default behavior for this option is what you want (i.e. all the cleanups of all subsequences will be called as part of the normal cleanup process). If you meant something different please describe in more detail.

 

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 4
(4,295 Views)

This would be the simplest way to do this, the drawbacks would be that he could'nt play both (the Cleanup sequence AND the CleanUp group) and this behaviour would apply to all sequences (this may be unwanted behaviour)

 

I attached a simple VI that does the trick I suggest( tested with LV and TS 2012 beta)

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 4 of 4
(4,290 Views)