checkIf

Hello everyone!

Can anyone demo some code that uses checkIf. I’m new to Scala/Gatling world and trying to figure it out.

Thank you!

Here is my code snippet within simulation class before scenario definition


`
val addOne = new CheckSupport {}

addOne.checkIf(true)(jsonPath(“$…email”))
addOne.conditionalCheckBuilder2Check

addOne.checkBuilder2Check
`

So. compiler (2.11.8 Scala version) says:

value checkIf is not a member of io.gatling.core.check.CheckSupport
[error] addOne.checkIf(true)(jsonPath(“$…email”))

value conditionalCheckBuilder2Check is not a member of io.gatling.core.check.CheckSupport
[error] addOne.conditionalCheckBuilder2Check

missing argument list for method checkBuilder2Check in trait CheckSupport

How come I can’t compile this code? I’m using 2.2.2, checkIf is certainly in the code of CheckSuport