Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Groovy Script Test Step only execute once in a DataSource Loop test case

$
0
0

Hi,

I am new to Ready!API and created a test case with datasource loop. I've added a groovy script which checks one property of the response of an earlier step. If the property value is 'Inprogress' then it waits and excute the same step again. My problem is the groovy script only get run once.

Basically I want to wait and keep executing the 'avalability response' step till it's status property is no longer 'InProgress'. If there is a better way of doing it please let me know.

def response = context.expand( '${XXYYZZ')
if (response == "InProgress")
{
sleep(5000)
testRunner.runTestStepByName( "Availability Response")
}

Many Thanks


Viewing all articles
Browse latest Browse all 21061

Trending Articles