Ask a Question

Repetition of a particular step

Usha_Kodali
Frequent Contributor

Repetition of a particular step

Hi,

I have test steps in my test case.
I want to repeat executing a particular step say 5 times before moving to another step.
How can i achieve this?
3 REPLIES 3

Re: Repetition of a particular step

I would recommend using groovy with a loop

/Nenad
http://eviware.com
Usha_Kodali
Frequent Contributor

Re: Repetition of a particular step

I wrote the following code...

teststep = testRunner.getTestCase().getTestStepByName('teststepname')
10.times{testRunner.runTestStep(teststep)}

Re: Repetition of a particular step

cancel
Showing results for 
Search instead for 
Did you mean: