Forum Discussion
omatzura
16 years agoSuper Contributor
Hi,
The problem is the testRunner.gotoTestStepByName method which does not actually execute that TestStep but transfer control to it once the current script finishes.. either you should use the
method (new in 2.5), or maintain a counter in the context for keeping track of the number of loops.. ie create a script after the request containing
Here the script first checks for a counter and initializes it if missing, the counts down a loops back to the request for 5 times..
Hope this helps!
regards,
/Ole
eviware.com
The problem is the testRunner.gotoTestStepByName method which does not actually execute that TestStep but transfer control to it once the current script finishes.. either you should use the
testRunner.runTestStep( testRunner.testCase.testSteps["getCasesBySubject - Request Transformation Failure -101"], true, true )
method (new in 2.5), or maintain a counter in the context for keeping track of the number of loops.. ie create a script after the request containing
if( context.counter == null )
context.counter = (int) 5
if( context.counter > 0 )
{
context.counter--
testRunner.gotoStepByName( "getCasesBySubject - Request Transformation Failure -101" )
}
Here the script first checks for a counter and initializes it if missing, the counts down a loops back to the request for 5 times..
Hope this helps!
regards,
/Ole
eviware.com
Related Content
- 8 years agojscorzelli
- 11 years agoSoapRookie
- 7 years agoMKV