Gatling check failing although message received in the response Actor io.gatling.http.action.ws.fsm.WsActor@5b11e7a3 crashed on message Some(TextFrameReceived({"type":"connection_ack"}

Hi Guys,

I am using Gatling 3.0.1 version on JDK 11 on windows machine.

I am currently testng GraphQl Subscription server with websocket connection, so as per journey, I do following steps in the script,

  1. Connect to Websocket
  2. Sendtext to websocket and this will give the response ““type”:“connection_ack”” and I did try a check function as
ws.checkTextMessage("ConnectionSuccessful").check(jsonPath("$.type").is("connection_ack"))

LMGT4U: https://stackoverflow.com/questions/8751482/patternsyntaxexception-illegal-repetition-when-using-regex-in-java

Many thanks Stephane, that’s working now if I give backslash in front of { as “\{” and “\}”.