Hello community,
I’ve been using Gatling and encountered an issue where the group is reported as failed even though all requests within the group are successful. After some investigation, I’ve identified a reproducer: the group is marked as failed when an error occurs in the doIf
condition, but the error isn’t logged anywhere.
private val scn = scenario("ScenarioName")
.repeat(10).on(
group("g1").on(
exec(http("request_1").get("/index.php"))
.doIf("#{NeverDefinedSessionVariable}").then(
exec(http("request_2").get("/index.php"))
)
.exec(http("request_3").get("/index.php"))
)
)
I’m seeking advice on how to output the error from doIf
to a specific location, enabling a quicker identification of the cause when facing a similar situation in the future. Any insights or suggestions on this matter would be greatly appreciated.
Thank you!