I need to transfer some values from previous test steps into a query parameter that is a list on the next test step. I am using SoapUI Pro 5.
Example:
I call addCustomer twice and get two IDs for the new customers, say ID=111 and ID=222. I then call a getCustomer method which has a query parameter which is a list of IDs. These are REST methods and the getCustomer URL looks like this:
GET http://myEndpoint.com/customers?ids=111&ids=222
How do I transfer the two IDs from the previous steps into the IDs list of getCustomer? Property Transfer seems to overwrite it and only puts the last ID in the list.
When you have an URL that contains parameters, SoapUI can extract them as you create the TestStep. Enter the URL into the URL field. Click Extract Parameters.
Open SOAP UI and navigate the Request Properties, go to Multiple-Value Delimiter and set one value, lets say comma(,) then in the actual value you can put comma separated values.
Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a '? ' Is added followed immediately by a query parameter.
In the Request Properties
, go to Multiple-Value Delimiter
and set one value, lets say comma, then in the actual value you can put comma separeted the values.
In our case ids=111,222
will be transtaled to ids=111&ids=222
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With