In my Gatling simulation, I have a list of WebSocket requests that are currently called one after another:
.exec(ws("1").sendText("1").check("..."))
.exec(ws("2").sendText("2").check("..."))
.exec(ws("3").sendText("3").check("..."))
The problem with that is that the checks arrive at different times and they cause test failures. Using a blocking check via wsAwait
is not possible because of the requirements.
What I would like to have instead is a single check that collects all the responses. Ideally, it would look something like this:
.exec(
ws("1").sendText("1"),
ws("2").sendText("2"),
ws("3").sendText("3")
).check(...)
This is, however, not possible currently. Is there a way I can achieve this?