From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
MimiKLM

Add to the post actions on fail a Fail execution option

Status: Declined

I'm declining this idea due to lack of community support.

Hi,

 

As in subject,

 

It would be good to have the Fail execution option. When the step will fail the execution pointer shal be moved to clean-up part of the sequence (and parent sequences) and the whole execution will be marked as failed

 

forum.png

8 Comments
warren_scott
Active Participant

Explain how what you want is different han choosing

On Fail >> Goto Step and choosing step <Cleanup>

MimiKLM
Active Participant

When you do On Fail >> Goto Step and choosing step <Cleanup> you finish the cleanup and the parent sequence will be still executing.

 

The point is to do the CleanUp in the all parent sequencies and finish the sequence with Failed status/ not to terminate the sequence.

dug9000
NI Employee (retired)

Is there a reason why the station option to goto cleanup on sequence failure would not work in this use case? Do you need this on a per step basis?

MimiKLM
Active Participant

Yes it is. The settings in station option is a global. I see a need of this feature to be applied step-wise rather than sequence-wise.

Norbert_B
Proven Zealot

Do i understand correctly that you request a termination of the sequence without having the state of the DUT to be "terminated"?

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
MimiKLM
Active Participant

Yes Norbert, you do.

 

I request termination with having it marked as failed.

WireWeaver
Active Participant
Status changed to: Declined

I'm declining this idea due to lack of community support.

https://www.linkedin.com/in/trentweaver
--thatguy
Member

There are critical failures and there are soft failures.
I also need this cascading cleanup to occur on the critical failures.  
Station Options isn't a viable alternative as that affects all executions causing all failures to be treated the same.

 

To get around this limitation on every critical failure step i need to set

  1. RunState.Sequence.FailureAction to FailureAction_GotoCleanup for the current sequence,
  2. Get my call stack depth
  3. Set the same property for every Caller up the chain.

This feature already exists at the engine level.  Just make it more flexible.