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