NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

stop on fail

How does one get the sequence to stop as soon as any of the tests fails ?
0 Kudos
Message 1 of 5
(5,215 Views)

When you say "stop" do you mean Break or do you mean stop everything and go to the report?  In Configure>>Station Options on the Execution tab there is a check for Immediately Goto Cleanup on Sequence Failure.  This will not execute any more steps in your Setup or Main step groups.  However, it will execute the steps in the Cleanup step group as well as the rest of the steps in your Model. 

 

There is another way but it depends on what kind of behavior you are looking for.  There is an Engine Callback called PostStep.  Basically a sequence that gets called after every step.  You can add it to your SeqFile, Model or to your Station Callbacks file.  In there you can have a step that checks to see if the sequence has failed and then break, terminate, abort or whatever else you want to do.  Again this all depends on the bahavior you are looking for and this can be a bit tricky.

 

Let me know for sure what you want and I can probably shed more light on it.

 

Regards,

Message Edited by ~jiggawax~ on 01-25-2009 10:48 PM
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(5,208 Views)

Hi Jigg, Thanks for the quick repsonce and great help.

I would like the seq to stop the moment a failure happens, and then ask for the next UUT to be inserted.

 

Thanks

Goose

0 Kudos
Message 3 of 5
(5,201 Views)

Goose,

 

request like yours normally target special steps. So if e.g. a configuration step for the UUT fails, there is no sense in running through the whole sequence since following steps would create either fails or even run time errors.

The easiest thing to solve this is to use steps from the flow control palette. You can either use if-clauses or goto-calls to adapt the sequence's execution flow for the needed task.

Please note that you should include all steps which contain shutdown routines in the cleanup stepgroup.

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 4 of 5
(5,194 Views)

Goose -

Note that you can also enable the option, "Immediately Goto Cleanup on Sequence Failure", on the Sequence Properties dialog box in the sequences where you want this to occur on a sequence file basis. This way the execution would jump to the cleanup and return it its caller. The station option mentioned above is a heavy handed setting and you might not want this to apply to all sequence files that you execute.

 

Scott Richardson
https://testeract.com
Message 5 of 5
(5,177 Views)