Using feeder to pass queryparam

Hi everyone,
I have
platforms.csv
Ps4,
PC,
Xone

exec(http(requestname = “xyz”))
.get(“projectname=abc”)
.queryParam(“platform”,*************)

Could anyone please help to get the platform from CSV at queryparam *****?

First line of csv file will be used as session variable name.

Your platforms.csv should look like:

platform
Ps4
PC
Xone

your simulation:

val scn = scenario(“My super scenario”)
.feed(csv(“path/to/platforms.csv”))
.exec(http(requestname = “xyz”))
.get(“projectname=abc”)
.queryParam(“platform”,"${platform}")

Thankyou for the quick response.
But I have some other issue in simulation.

simulation:

val scn = scenario(“My super scenario”)
.feed(csv(“path/to/platforms.csv”))
.exec(http(requestname = “xyz”))
.get(“projectname=abc”)
.queryParam(“platform”,"${platform}")
.queryParam(“platform”,""${platform}) --------> This value should be other than the above value.

Could you please suggest any idea for this?

The core principle of a feeder is one (and only one) map per user.

You could create a csv as:

platform1,platform2
a,b
a,c
b,a

b,c
c,a

c,b

In that case you will be able to have
“${platform1}” and “${platform2}” available.