NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

step post action works only in 'Test UUts' mode

Solved!
Go to solution

Hi,

 

My main sequence file has a list of  steps, all sequence type.  I specify a post action on each one to jump to end if the seq fails and if a flag is set:

 

FileGlobals.StopOnFail == True && RunState.SequenceFailed == True

 

I found out that it only works if I run my test in 'Test UUTs' mode.  If I select 'Run Selected tests using Single Pass', then, it igonre this.

Is this how it supposed to be?

How can i fix it?

 

Thanks

 

Rafi

TS4.1

0 Kudos
Message 1 of 13
(4,128 Views)

Rafi,

 

i created a small sequence containing a single step with your given condition for a post action. If that condition evaluates to true, i configured a jump to <EndGroup>.

Please note that the prerequisite for the condition to evaluate to true is, that a previous steps execution has to to set the SequenceFailed-flag.

If you have no step which sets that flag, the condition for the post action will evaluate to false. I asume that you missed that part, therefore your "Run Selected Steps using Single Pass" will not execute the post action....

 

hope this helps,

Norbert 

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

Hi Norbert and thanks..

 

Why do you need a previous step?

I set it as a post action for a seq type step.  This step fails and therfore I expect it to evaluate the condition (as specified in my previous mail) and jump.

 

It does happens in 'Run UUTs' but does not happen if i run selected step.

 

I don't understand this....

 

 

Regards

 

Rafi

 

0 Kudos
Message 3 of 13
(4,104 Views)

Rafi2003 wrote:
[...]Why do you need a previous step?[...]

Rafi,

 

you are correct that you do not need a previous step; it is sufficient if the step itself fails and sets the RunState.SequenceFailed flag.

On my machine, this test also works as expected so i asume that either your step itself does not set the RunState.SequenceFailed flag or you have another issue in your Run Selected Steps using Single Pass execution....

 

Norbert 

[EDIT] Added small example sequence 

Message Edited by Norbert B on 05-13-2009 06:26 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 13
(4,098 Views)

hi Norbert,

 

the latter is the case.  I verified that all conditions are correct (RunState.SequenceFailed == Ture) still, the post action is not performed while in 'Run Selected Steps'.

 

Do you have any idea where to look?  do I need to dig into the sequential module?

 

Thanks

Rafi

0 Kudos
Message 5 of 13
(4,094 Views)

Rafi,

 

i asume that you are using the default SequentialModel.seq. Is that correct?

Please post your sequence (or a small example) showing the issue and describe how reproduce it.

 

thanks,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 13
(4,090 Views)
Have you checked your setting for Station Options>>Execution>>Interactive Executions>>Branching Mode? It controls how branching is handled in interactive executions, which is the kind of execution you are running when you "run selected steps".
Message Edited by James Grey on 05-13-2009 09:54 AM
0 Kudos
Message 7 of 13
(4,078 Views)

The branching type right now is:  "Ignore Branches to unselected steps".

 

I assum this is the TS default selections since I've nerver touched it....

 

 What do you think?

 

Thanks

Rafi

0 Kudos
Message 8 of 13
(4,062 Views)

Hi Norbert,

 

I created a new sequence with 2 steps in order to simulate the problem.  

 

Indeed I found the cause of the problem-- it is in the destination jump specified in the post action!!

 

It works find if the destination is <End Group>.  However, If I specified a step that I put, (for example 'End Step' of type Nothing...or a Label just before the <End Group>) it works differently.

 

On Run UUTs - it works fine and jump to the step I specified.

On Run Selected Steps - it DOES NOT jump and proceed to the next step.

 

Is it related to the specification of the Branching?

 

thanks

 

Rafi

0 Kudos
Message 9 of 13
(4,059 Views)

Rafi,

 

no, i don't think that this is related to the branching selection.

I rather think that you did not include the step you want to jump to to your "Run Selected Steps using Single Pass" - selection. I made a small test:

Not selecting the "jump-to step" will lead to TestStand ignoring the whole post action during execution. If i select the "jump-to step", TestStand will execute the steps "properly" including the post action therefore jumping to the designated step.

This is the behavior i expect from TestStand, so if it is the same on your machine, there is nothing to bother........ 

 

hope this helps,

Norbert 

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