NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

First failing step incorrect when using subsequence

I'm using a sequenced called from my main sequence, and it has a handful of steps. I call this sequence in a new thread. There is a wait statement "Wait for ch B" to rejoin its thread to the main sequence.

 

My issue is, when one of the steps inside the sequence fails, the failure cause for the sequence is the wait statement's name, "Wait for ch B", instead of the step that actually failed.

 

Any thoughts on how to fix?

0 Kudos
Message 1 of 4
(1,874 Views)

Hi Stephen,

 

It is considered as a feature, not a bug...

See help here : http://zone.ni.com/reference/en-XX/help/370052W-01/tsref/infotopics/sync_step_types_wait/

Therefore, when a Wait step waits on a sequence that fails, TestStand sets the status of the Wait step to Failed. The result list entry for a Wait step contains a TS.SequenceCall.ResultList property, which is the result list for the thread or execution.

 

What exactly are you trying to achieve ? Modify the report failure display?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 2 of 4
(1,840 Views)

Yes, my goal is to have the failing step in the report reflect the step that actually failed, which is more descriptive than 'wait for ch B'.

0 Kudos
Message 3 of 4
(1,837 Views)

Hi,

I'm sorry but I do not have any SeqEditor on my machine right now to make some tests but in your report do you only have one ligne with 'Wait ch B failed' or do you also have after some lines about the step that actually failed in the subsequence laucnhed in parallel ?

I guess the failure chain should be able to show the complete path that lead to the error.

If so, maybe just filtering the 'wait' steps using the filtering expression in the report options would work to remove the 'wait failed' entry and still displaying the rest of the failure chain.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 4 of 4
(1,835 Views)