Ask a Question

Change the body of the JSON request while looping through the test case

SOLVED
Ruth
Occasional Contributor

Change the body of the JSON request while looping through the test case

Is there a way to change the body of the JSON request when looping through the test case.

For example I want the request to return all rows where "Result_Field = Pass", the next loop I want to change to where "Result_Field = Processing", etc.

 

{
"command": "get",
"options": {
"where": "Result_Field = Pass"
}
}

1 ACCEPTED SOLUTION

Accepted Solutions
nmrao
Community Hero

Re: Change the body of the JSON request while looping through the test case

Can you check the below link that I posted for similar requirement, you can just adjust for your data by tuning it.
http://stackoverflow.com/questions/33748424/set-json-element-in-soapui-testcase-request-using-groovy...


Regards,
Rao.

View solution in original post

1 REPLY 1
nmrao
Community Hero

Re: Change the body of the JSON request while looping through the test case

Can you check the below link that I posted for similar requirement, you can just adjust for your data by tuning it.
http://stackoverflow.com/questions/33748424/set-json-element-in-soapui-testcase-request-using-groovy...


Regards,
Rao.

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: