12-05-2008 12:30 PM
I have a sequence that contains a DoWhile loop. Within the loop are 5 or 6 steps that are executed. If the result of those steps is a fail the loop runs again until it passes or meets its allowable number of iterations. My problem is that if an iteration fails and then passes the result for the sequence is failed. Can the pass/fail status be controlled via an expression etc? I know I can create a subsequence and loop in it with the properties. I am just curious to know if there is a way it can be done like I have explained.
Thanks in advance for any help,
Troy
12-05-2008 03:20 PM
Troy,
You might be able to use the RunState.ThisContext.SequenceFailed property. Set this equal to False after your loop runs, and the sequence should report as if it passed.
12-08-2008 04:00 AM
Hi,
maybe you also have to uncheck "Step Failure Causes Sequence Failure" option under Run Options in your Step Settings pane of your test steps in the loop in order to get your sequence passed.