checkIf

87 views
Skip to first unread message

Tali G

unread,
Jul 18, 2016, 11:11:03 PM7/18/16
to Gatling User Group
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!

Tali G

unread,
Jul 20, 2016, 12:58:56 PM7/20/16
to Gatling User Group


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

Reply all
Reply to author
Forward
0 new messages