How to populate a query parameter list in SoapUI?

GeekChick picture GeekChick · Jun 11, 2014 · Viewed 10.8k times · Source

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.

Answer

Miguel Nieto picture Miguel Nieto · Oct 26, 2015

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