From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check from within the subsequence has the sub-sequence passed or failed?

Solved!
Go to solution

Hi,

 

I need quick help:

 

At the end of the sub-sequence in the CleanUp section I'd like to check has this sub-sequence passed or failed?

 

How to do this?

 

K.

0 Kudos
Message 1 of 5
(4,759 Views)

Hi,

 

One of the way to do it  :

 

Changes in the test sequence :


Add engine callback - "SequenceFilePostStepFailure" to your test sequence.

Create a passfail flag in fileglobals.

In the engine callback put a statement which sets the flag to True.

 

For the sub sequence do the following :

 

In setup set this flag to false 

In the cleanup check if this flag is true

This flag will be true only if any of the steps failed in the sub sequence

 

Hope this helps.

 

Ravi

0 Kudos
Message 2 of 5
(4,750 Views)

Can't I not use something what is already built-in in API?

 

Maybe there is Something under RunState... API menu?

0 Kudos
Message 3 of 5
(4,748 Views)
Solution
Accepted by topic author MimiKLM

I think you are looking for Rustate.SequenceFailed.

0 Kudos
Message 4 of 5
(4,741 Views)

That's it!

Thanks

0 Kudos
Message 5 of 5
(4,716 Views)