We are trying to use websocket plugin http://github.com/maciejzaleski/JMeter to test websocket requests. We are able to connect to ws connections but not able to do wss connections.
For example, when I try to hit wss://echo.websocket.org
we are getting Unknown source
error from jmeter-websocket plugin.
Could someone please suggest if any workaround to use this plugin for wss.
Do we need to do any more configurations?
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:156) JMeter.plugins.functional.samplers.websocket.WebSocketSampler.sample(WebSocketSampler.java:136) org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:431)
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258)
java.lang.Thread.run(Unknown Source)
The same request (wss://echo.websocket.org
) is working fine from https://www.websocket.org/echo.html.