Forum Discussion

JHoreczky's avatar
JHoreczky
Contributor
13 years ago

[RES] Submit a list of values to servlet

Hello SmartBear support team,

I am trying to use SoapUI Pro 4.5.0 to submit a request to servlet that expects a list of values for one of the request parameters.

For example: servlet?alias=joe&alias=john&alias=jim

It doesn't seem to be possible to add another method parameter using a name that already exists. The method parameters editor, in both the REST and HTTP case, doesn't allow adding another parameter with the same name, but merely positions the input edit for the already existing parameter.
As a workaround I tried duplicating the parameter by manually editing the SoapUI project file. In that case when the project file is loaded into the SoapUI, the first parameter is used, and the subsequent parameters having the same name are silently ignored.

Is there a workaround, in order to achieve the above, possibly through the GUI interface? Do I need to use a Groovy script for implementing this requirement?


Thanks,

Joseph H.

2 Replies

  • Hi,

    there is a "Multi-Value Delimiter" property in the bottom left table of properties for your request, set this to something that you can use to separate multiple values for your parameters - so for example if you specify "," you can specify "john, jim" in your parameter value which will result in the parameter being added once for each value.

    Hope this helps!

    regards,

    /Ole
    SmartBear Software
  • Hi Ole,

    Thanks for the suggestion, it works great! Using the Multi-Value Delimiter did the trick.



    Joseph H.