03-16-2012 05:44 AM
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
03-16-2012 08:32 AM
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,
03-16-2012 09:56 AM - edited 03-16-2012 09:58 AM
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
03-16-2012 10:00 AM
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)