Forum Discussion

sathyaraj's avatar
sathyaraj
Occasional Contributor
9 years ago

loop the test steps in soapui with the help of groovy

I have an JDBC request step to pull the data from database like the below.


<Results>
<ResultSet fetchSize="10">
<Row rowNumber="1">
<Dep_Airport>one</Dep_Airport>
<Dep_Airport>two</Dep_Airport>
<Dep_Airport>three</Dep_Airport>
</Row>
</ResultSet>
</Results>

 

In the test suite level i have created the property as Dep_Airport=one mnually..i want this all the dep airport will be looped one by one every time the the test suite completed their steps

 

For Example:

 

before run the suite first time i will insert the property as Dep_Airport=one mnually and when all the steps completed in the test suite including the jdbc request steps.

then it should change the Dep_Airport=two and it should run the suite one more time then it should change the Dep_Airport=three and run one more time.

 

kindly help me to sugggest the solution or idea