NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to terminate on Sequence Failure?

HI,
 
I would like to terminate the test upon a sequence failure.  However ONLY from sequences called by the MainSequence!!
 
I tried to set in the PostAction --> Terminate on Fail, but it didn't stop?!
 
Can you recommend a way to accomplish it?
 
Also, I would like to see a Failure mark (red FAIL) on the failed sequence (if possilbe)
 
Thanks
 
Rafi
0 Kudos
Message 1 of 4
(4,345 Views)
Rafi,

i tested your request and most of the things are working just as you request them:
- A failing step configured as Post-Action Terminate at Fail will terminate the execution.
- A sequence terminating by this action will get the result "Terminated"

What does not work as you (seem to) desire:
- The execution will never instantly stop, not with termination nor with abort.
- The result "Terminated" is displayed in a dark blue box within the Sequence Editor. There will not be the result Failed for the subsequence.

The execution will never instantly stop because TestStand always waits until possible active modules have finished. If you use the default SequentialModel, this method of temination should instantly initiate the termination procedure. Within this procedure though, all steps in the "Cleanup"-stepgroups are called going up the callstack. This is an important feature which cannot be changed.

Regarding your failure mark: do you use an UI other than the Sequence Editor?

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(4,333 Views)

Hi Norbert,

You gave an example of a step within a sequence that caused the Termination.  I, however, were talking about Termination upon a sequence failure.

If you specify in the properties of the sequence to Terminate upon a failure, it does not stop and continue to next step.  I was trying it on a sequence step in the MainSequence.

I solved my problem by indicating jump to End groupupon failure, rather than terminating.  However, I'm still curious as to why the sequence does not responds to Termination upon failure.

 

Do you have any explanation?

 

Thanks

0 Kudos
Message 3 of 4
(4,322 Views)
Rafi,

just configure each step of your subsequence to terminate on failures instead of the SequenceCall....

[EDIT]: To be more elaborate: The SequenceCall knows the result of the step only after the whole subsequence is executed.

hope this helps,
Norbert


Message Edited by Norbert B on 06-16-2008 09:29 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(4,313 Views)