Hi.--I am working with sockets and when I send a message I expect a bunch of messages to come back with different expectations and important parts I need to save to the session. With my current implementation, it looks like it only keeps the last checked message.Here is a simplified version of I am doing:def performAction(): ChainBuilder =
openSocket()
.pause(2 seconds)
.exec(
ws("Activate game")
.sendText(session => "Message in json")
.check(checker("$.var1", "var1"))
.check(checker("$.var2", "var2")) // Only var2 makes it to the session :(
).exitHereIfFaileed
private def openSocket(): ChainBuilder =
exec(
ws("Open socket")
.open(PATH)
)
private def checker() = private def addToSession(path: String, name: String) =
wsAwait
.within(30 seconds)
.until(1)
.jsonPath(path)
.exists
.saveAs(name)
Thanks!
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.