Websocket plugin for Jmeter - for WSS

We are trying to use the websocket http://github.com/maciejzaleski/JMeter plugin to test website requests. We can connect to ws connections, but are not able to make wss connections.

For example, when I try to click wss://echo.websocket.org , we get an Unknown source error from the jmeter-websocket plugin.

Can someone please suggest if any workaround can use this plugin for wss.
Do I need to make any 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 ) works fine from https://www.websocket.org/echo.html .

+5
source share
1 answer

It looks like NPE is happening, which may indicate an error in the plugin.

You should report it there with more details, although the plugin does not seem to have been updated since 2014.

You can see an alternative and supported JMeter plugin for websocket:

It is available through the JMeter Plugins Manager.

0
source

Source: https://habr.com/ru/post/1211701/


All Articles