05-12-2009 02:14 AM
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
Solved! Go to Solution.
05-12-2009 03:16 AM
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
05-13-2009 03:43 AM
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
05-13-2009 06:25 AM - edited 05-13-2009 06:26 AM
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
05-13-2009 06:29 AM
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
05-13-2009 08:39 AM
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
05-13-2009 09:53 AM - edited 05-13-2009 09:54 AM
05-14-2009 12:49 AM
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
05-14-2009 01:44 AM
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
05-14-2009 02:13 AM
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