Hi,
This can be achieved using groovy script.
Go to add step and click on groovy script.
Now, like any other programming language, write the desired code for 'for' loop.
It can be like:
for(i=<initial value>; i<=10; i++)
{
if(i<10)
{
testRunner.runTestStepByName("<step name 1>")
}
else
{
testRunner.runTestStepByName("<step name 2>")
}
}
Here, please ensure first that you want to jump to the target test step before completion of the current test step. If you want current step to complete first and then jump to target test step, use
testRunner.gotoTestStepByName("<step name>")
instead of
testRunner.runTestStepByName("<step name>")
Hope it solves the purpose.
Regards,
-