Forum Discussion
LK,
you can either use the Conditional Goto Test step or Groovy scripting.
There's a comprehensive article on controlling the test case flow using both these approaches in SoapUI/ReadyAPI docs.
Best regards,
Karel
Hi Karel, thanks for your reply. I tried using groovy script and I am getting this error- groovy.lang.MissingPropertyException: No such property: java for class: Script4
error at line: 7
Scrpit:
import groovy.json.JsonSlurper
//def loopProperties = testRunner.runTestStepByName("REST Request")
//def count =Integer.parseInt (testRunner.testCase.testSuite.getPropertyValue( "availableEvStationCount" ))
def availableEvStationCount= testRunner.testCase.getPropertyValue( java.lang.string("availableEvStationCount") )
testRunner.testCase.setPropertyValue("availableEvStationCount", "availableEvStationCount" )
//Integer count = scount as Integer
if (availableEvStationCount<2)
{
Thread.sleep(5000)
} else {
testRunner.runTestStepByName("REST Request")
}
Could you please help.