Hey Guys,
I’m fairly new to websockets so my apolagies if I understand it wrong.
I have a scenario where I connect to a websocket, send some textmessages and validate the response. this scenario works fine when I look at the runner in debug mode, also none of the checks fail.
However in the final report I do not see any data on the sendText step but I do on the checkText step. is this normal behavior? or is there a way to get data of all steps in the report?
I will include my scenario below.
`
def connectToSocket = scenario("connectToSocket")
.exec(ws("Connect WS")
//.connect(wsPath+"${JWTtoken}")
.connect("wss://"+envOrElse("BASE_URL", "url")+"/path to socket")
)
.pause(5)
.repeat(5,"n"){
exec(ws("TestMessage WS")
.sendText("""{
"subscription": {
"something": ["something", "something"]
}
}""")
.await(30 seconds)(
ws.checkTextMessage("checkName").check(regex(".*\"message\":\"subscription applied\".*"))
)
)
.exec { session =>
println(session("checkName").as[String])
session
}
.pause(2)
}
.exec(ws("Close WS")
.close
)
`
as you can see in the final results output of the runner there is no mention of the sendText step