11-05-2010 01:58 PM
I have a sequence that looks like this:
MainSequence
Step1
Step2
SubSequence
DoWhile (Test1 fail and time has not exceed 30 sec)
Test1
End
Step3
The DoWhile loop run Test1 over and over until either Test1 passes or time has exceed 30 seconds. Usually, Test1 actually pass. So, on the steps screen, Test1 would actually be shown as "PASS", but when the SubSequence exits, the SubSequence would be shown as "Failed". I think this is because Test1 failed a few times before passing.
How do I change it so that the SubSequence would be shown as "PASS" in the report as long as Test1 passed once?
Thanks.
Solved! Go to Solution.
11-05-2010 04:13 PM
Try using the "Looping" properties of the SequenceCall step ( the one that calls your Subsequence running Test1 ) to the following:
Loop Type: Pass/Fail Count
Uncheck the box 'Record Result of Each Iteration'
Stop after 1 iterations PASS.
You may need to set a maximum # of iterations that is somehow based on 30s? Is that possible given the length to run one test?
Thanks,
PH
11-05-2010 04:31 PM
I don't think that's not going to work?
By using the "looping" properties of my SequenceCall to my SubSequnence, I would be looping my SubSequence. That's not what I want to do. I only want to loop Test1. Test1 is inside my SubSequence.
11-05-2010 04:31 PM
HI Bladhart,
just for understanding whats the reason for making a failed sequence to pass ?
Maybe this will help,
There is flag in StepSettings Pane RunOptions "Step Failure Causes Sequence Failure"
If disabled the calling sequence is Passed if SubSequence is Failed, but this Step is in Report Failed !!
It was failed of course so why renaming to passed ? If only the Report is neccesary to be passed. Rename it
in the ResultList from Failed to Passed.
Regards
Juergen
11-05-2010 04:48 PM
I am sorry. The question was a bit confusing. Let's try to re-phase this so it is easier to explain.
DoWhile
SomeStep1
SomeStep2
Test1
End DoWhile
I would like run Test1 over and over again until it passes or up to 30 times. In other words, I want my sequence to "PASS" as long as Test1 passed once. I don't care that it failed 15 times before it passes. All I care is that Test1 managed to pass once. If Test1 passes once out of 30 tries, I still want my sequence to "Pass". If Test1 tried for 30 times, but still failed, then I want my sequence to "Fail".
11-05-2010 05:26 PM