Documented here, Gatling's checkIf
method is intended for conditional checking. It's not available on ScenarioBuilder
's fluent API but I can see it in the CheckSupport
class. I have scoured the internet and cannot find a single example.
I'm using Gatling 2.3.1.
I found an example in their unit tests as follows:
http("untypedCheckIf").get("/")
.check(
checkIf("${bool}") {
jsonPath("$..foo")
}
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With