My desired scenario is as follows: I have a list of URLs. I would like to obtain load testing results for GET requests to every single URL separately. In other words, I want it to perform N (say 100) requests per URL and show the results separately in the Gatling dashboard.
Currently, the code looks like this
private final ScenarioBuilder scenario =
scenario("Requests")
.exec(
http("Single request")
.get(<URL from list of URLs>));
Then the Gatling dashboard will aggregate all of the requests under the same name under the “Details” view. What I want is for Gatling to split them up, and analyze them separately as if they were different load tests. I don’t want to manually change the parameters and rerun Gatling.
Under which does Gatling aggregate? I guess under "Single request".
You may try to put it in your request name. Beware that the amount of different names is limited for performance reason.
private final ScenarioBuilder scenario =
scenario("Requests")
.feed(feeder)
.exec(
http("#{url}")
.get("#{url}"));
Yes, the Gatling dashboard appears to aggregate under "Single request". Your example provides a great solution. I was unaware you could use feeders this flexibly. Thanks!
Also the topic title is incorrect I see now. Initially I wanted to send different bodies to one endpoint, but I decided to provide another use case halfway through. The core of the question remains the same though.