Soap UI_free version_more than one record fetch
Hi All,
I am facing a problem while want to fetch more than 1 records from test case level to put in REST req which is in JSON format.
I have used below codes in groovy test step to fetch the records from test case custom property level, but unable to send it to my required REST request input(JSON).
def s = testRunner.testCase.getPropertyValue( "airports")
def list = s.split(',')
def i = Integer.parseInt(testRunner.testCase.getPropertyValue( "counter"))
if (i < list.size()) {
// Do your action here
log.info list[i]
// increment the counter
i++
testRunner.testCase.setPropertyValue( "counter", i.toString())
}
else {
// Otherwise we set counter to initial value
testRunner.testCase.setPropertyValue( "counter", new Integer(0).toString())
}
Here im getting the output in console only.
Please help.
Deb