StevenC
10 years agoContributor
testcase.setPropertyValue is not updating the value between iterations of a loop using SoapUI 5.0.0,
In the following code...
def getStats = postProc.testSteps["getStatsForRun"] runList.each{ sleep (4000) log.info "getting stats for run: runName = ${it.runName}, runId = ${it.runId}" postProc.setPropertyValue("runName", it.runName) postProc.setPropertyValue("runId", it.runId) log.info "runName = ${postProc.getPropertyValue("runName")} , runId = ${postProc.getPropertyValue("runId")}" sleep (4000) getStats = postProc.testSteps["getStatsForRun"] getStats.run(testRunner, context) }
The values of the properties runName and runId are only being updated on the first iteration of the loop. I can see in the logging that the list is being properly iterated but every time the getStatsForRun step is executed it uses the values of the first element in the list.
Is this a known issue in 5.0.0? If so is it resolved in the latest version of readyAPI?