Hi,
I’m trying to reverse-engineer and understand a test written by one of our testers. I found the concept of duration can occur in multiple places in the test
- duration1 seems to be for a single step of a scenario
- duration2 is for whole scenario, including all steps so must be >duration1, right?
- duration4 is when Gatling slowly limits the traffic (throttling), so it is after executing the scenario for duration2 period of time
- duration3 includes both scenario execution and throttle, right?
Regards,
Maciej
val scn = scenario(“Generate once, validate many”)
.tryMax(3) {
exec(login)
}
.exitHereIfFailed
.tryMax(3) {
exec(generateToken)
}
.exitHereIfFailed
.during(duration1) {
forever {
pace(5 seconds).repeat(5) {
exec(validateToken)
}
}
}
setUp(
GenerateOnceValidateMany.scn.inject(
rampUsers((maxRps * 1.1) toInt) over(duration2)
)
)
.protocols(httpConf)
.maxDuration(duration3)
.throttle(
reachRps(maxRps) in (duration4)
holdFor(duration)
)