Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to populate a query parameter list in SoapUI?

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.

like image 979
GeekChick Avatar asked Jun 11 '14 16:06

GeekChick


People also ask

How do you add parameters in soapUI?

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.

How do I pass multiple values in soapUI?

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.

How do you write a parameter query?

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.


1 Answers

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

like image 55
Miguel Nieto Avatar answered Sep 18 '22 16:09

Miguel Nieto