Reputation: 21
My Requirement:
I have to connect to the Websocket through JMeter Once it is connected, I have to send some API requests having JSON data as body to the server and I have to verify the JSON response of it
Worked Items:
I have tried using Maciej Zaleski Websocket plugin but couldnt make through I am able to connect to the websocket using Websocket open Connection but after that I am unable to send JSON data to the server Throwing an error as
"Error: [Execution Flow] - Opening new connection - Using response message pattern "" - Using disconnect pattern "" - Waiting for the server connection for 5000 MILLISECONDS - Cannot connect to the remote server
[Variables] - Message count: 0
[Problems] - Unexpected error: null JMeter.plugins.functional.samplers.websocket.ServiceSocket.sendMessage(ServiceSocket.java:189) JMeter.plugins.functional.samplers.websocket.WebSocketSampler.sample(WebSocketSampler.java:141) org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490) org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416) org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250) java.lang.Thread.run(Unknown Source)
Log: 2018-08-07 14:57:54,013 INFO o.e.j.w.c.WebSocketClient: Stopped org.eclipse.jetty.websocket.client.WebSocketClient@35c6f96b 2018-08-07 14:57:54,014 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, local)
Upvotes: 2
Views: 2687
Reputation: 168072
I think you should switch to JMeter WebSocket Samplers by Peter Doornbosch as the plugin you're using is abandoned for 3+ years therefore it might miss some essential functionality.
Check out JMeter WebSocket Samplers - A Practical Guide article for installation and usage instructions.
Upvotes: 1