Hello,
I am using Gatling 2.1.4 to perform performance testing on our product and am facing an issue I don’t understand.
During the simulation, I have a scenario executing with multiple clients.
However, sometimes when a request fail for a client, all tryMax loops perform the retries even if there is no fail check in the loop.
Here is a sample of my project that is failing :
a.scala
`
object objectA {
val objectAchain =
exec(
http(“Request A”)
.get(“url_a”)
.check(jsonPath("$.items[0].uid").saveAs(“objectsA”)))
}
`
b.scala
`
object objectB {
val objectBchain =
exec(session => session.remove(“successfully”))
.tryMax(10) {
exec(
http(“Request b”)
.post(“url_b”)
.check(status.is(200).saveAs(“successfully”)))
}
}
`
c.scala
`
class mySimulation extends Simulation {
val myScenarioChain =
repeat(10) {
exec(objectAchain)
.exec(objectBchain)
}
val myScenario = scenario(“myScenario”)
.exec(myScenarioChain)
setUp(myScenario.inject(rampUsers(30) over (60 seconds)))
}
`
So when “Request a” fail for a client, all following “Request b” are retried 10 times, whereas the requests are OK.
Do you have any idea why this can happen ?
Not sure about that, but I think I never had this problem when using Gatling 1.5.6.
Thanks in advance for your help.