NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set result of a pass/fail sequence call

Solved!
Go to solution

OK, so you solved my example the same way as the one above.  Which I was trying to avoid.  I would like to think that I could pull in any subsequence that has the intelligence to pass or fail and use it from a higher level without modifying its parameters to pass in a passfail flag that the top level can recognise.  It is really sad that the fact that I am setting the subsequence to fail doesn't translate to the calling step that it has failed automatically.  Which is basically what it seems you were describing in your explaination as well.

 

"Another property of the TS.SequenceCall container is the Status.  This gets set by the engine whenever a step in the sequence fails, as long as that step has the Step Failure Causes Sequence Failure flag set.  So basically after every step executes the engine looks at its status and sets that flag when it returns to the caller.  Well that status gets passed up to the callers until it reaches  MainSequence.  Again, as long as that flag is set for all steps, including the sequence calls.  When MainSequence returns to the process model then the process model has that setting in the resultlist and knows how to handle it during the report generation stage."  -- Jigg

 

Oh, well.  Pushing forward.

 

Thanks again for all your help.

 

Jeff

0 Kudos
Message 11 of 16
(1,995 Views)

Jeff,

 

That only applies if the step is a Sequence Call and not a Pass/Fail Test.  I've revised the code to demonstrate this.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Download All
0 Kudos
Message 12 of 16
(1,991 Views)

There is a huge difference between a Sequence Call step type and a Pass/Fail Test step type using the Sequence adapter.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 13 of 16
(1,990 Views)

All of this was super helpful to learn.  But it seams it still doesn't get me past my specific scenario.

 

The errors I'm hitting in my real code are actually RunTime Errors.  Which keeps the steps in the lower-level sequence from running Post Expression.

 

Back to the drawing board.

 

Thanks

Jeff

0 Kudos
Message 14 of 16
(1,971 Views)

There is a difference between an Error and a Failure.  The engine treats them differently.  Start a new thread and put what error you are seeing and we'll see if we can figure it out.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 15 of 16
(1,970 Views)
0 Kudos
Message 16 of 16
(1,960 Views)