Forum Discussion

sanj's avatar
sanj
Super Contributor
7 years ago

I need groovy script examples for SOAP UI requests

 

Let me try to give my problem and how I want to solve it and where do I need groovy script.

So I am trying to send REST request.

These request can have varying number of attributes for one test case

 

 

I have two ways of doing this

One using data driven approach but the catch is I will need to have varying number of parameters for each test step

The other approach is having an array that contains all the data

Then looping through this data until all items in data are in the request

and verifying each time I go through a loop.

This can be accomplished via Groovy script.

Any ideas how this can be accomplished.

 

17 Replies