Need a help for .multivaluedFormParam function

69 views
Skip to first unread message

Rushabh Doshi

unread,
Apr 25, 2016, 6:30:21 AM4/25/16
to gat...@googlegroups.com
Hi All,

For Example

I have used .multivaluedFormParam("Ids", "${Id}")) this in build function but currently passing values like as per follow, which is wrong. This is not which i want it.

Ids: 5773088
Ids: 5773087
Ids: 5773086
Ids: 5773085
Ids: 5773084
Ids: 5773083
Ids: 5773082
Ids: 5773081
Ids: 5773080
Ids: 5773079
Ids: 5773078
Ids: 5773077
Ids: 5773076
Ids: 5773075


I wanted to pass these values at a single go with comma separated values.

Ids: 5773088,5773087,5773086,5773085,5773084,5773083,5773082,5773081,5773080,5773079,5773078,5773077,5773076,5773075

Please tell me what am i doing wrong here?

Thanks,
Rushabh

Rushabh Doshi

unread,
Apr 25, 2016, 6:40:14 AM4/25/16
to gat...@googlegroups.com

Stéphane LANDELLE

unread,
Apr 26, 2016, 5:02:06 PM4/26/16
to gat...@googlegroups.com
A comma separated value list is nowhere the HTML standard. This way is something specific to your application, so you can't use multivaluedFormParam for this, you have to manually forge the concatenation.

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rushabh Doshi

unread,
Apr 27, 2016, 12:41:35 AM4/27/16
to gat...@googlegroups.com
Guys - any luck on this ???

Rushabh Doshi

unread,
May 3, 2016, 4:41:05 AM5/3/16
to Gatling User Group

Thank you very much.

I have used this way and works for me. formParam("Ids", "${d(1)},${Id(2)},${Id(3)},${Id(4)},${Id(5)},${Id(6)},${Id(7)},${Id(8)},${Id(9)}") and so on....

But these are the comma separated values still pretty limited and manageable, but what if there are 250 or more ideas?? Then I have to do it manually??? Which I have mentioned above and it is quite painful to do it manually.

So is there any way to achieve this?

Thanks,
Rushabh
Reply all
Reply to author
Forward
0 new messages