Hi!
I’m testing out throttle (using version 2.2.2) but cannot get it to work when I have several requests in one scenario.
If I have more than one requests, only the first is executed. If i remove the throttling part, all requests are executed.
Is it supposed to work like this, or is it me that have misunderstood something?
Here is some reproducable code.
`
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
class RecordedSimulation extends Simulation {
val scn = scenario(“scn1”)
.exec {
http(“google home page”)
.get(“http://google.com”)
}
.exec {
http(“google norwegian home page”)
.get(“http://google.no”)
}
setUp(
scn.inject(atOnceUsers(1000))) //I know, a lot of users, I just added many to test out throttling
.throttle(
reachRps(4) in (1 second),
holdFor(1 minute)
)
}
`
Here is the results, the second request is not executed. In the result html report I see that the first request gets hit by 4 rps.