I haven't found the answer in previous topic, also the question is quite popular. I have http client that create some application session and request resources during it.
val scn = scenario("App session")
.exec(
http("Authorize")
.get("/authorize")
.queryParam("token", token)
.queryParam("version", version)
.check(bodyString.saveAs("key"))
).exec {
val array = csv("entities.csv").records.flatMap(r => r.seq.values)
foreach(array, "record") {
exec {
http("Get ${record}")
.get("/dump?key=${key}")
.queryParam("model", "${record}")
}
}
}
setUp(scn.inject(
rampUsers(3) over(30 seconds)
)).protocols(conf)
As you can see in second `exec` client iterate some entities and request them sequentially.
I should emulate client does 4 requests in parallel. Client asks and waits answers, If it finishes with one request move to the next, another 3 would be waiting. And so on.
Does anybody know the recipe?