Simulation marked as failed

Hi,

I have some simulations where I use assertions like this → .assertions(global.successfulRequests.percent.between(95, 100)) but the simulation is always marked as failed.

I’m using Gatling 2.2.3 and here are the steps to reproduce this issue:

Simulation:

`

class Dummy extends Simulation {

val scn = scenario(“dummy”)
.exec(http(“req1”).get(“http://www.example.com”))

.exec(http(“req2”).get(“http://www.example.com”))

setUp(scn.inject(atOnceUsers(1)))
.protocols(http.baseURL(“127.0.0.1”)
.disableCaching
.maxConnectionsPerHostLikeChrome)
.assertions(global.successfulRequests.percent.between(95, 100))
}

`

Output:

`

I’ve just double checked with gatling version 2.2.2 and it works as expected…

Hey Niko,

This bug has already been fixed in master: https://github.com/gatling/gatling/issues/3203

For your use case, you could as well simply use global.successfulRequests.percent.gte(95)

Cheers,