Jmeter的Websocket插件 - 用于WSS

Thr*_*app 5 jmeter websocket jmeter-plugins

我们正在尝试使用websocket插件http://github.com/maciejzaleski/JMeter来测试websocket请求.我们能够连接到ws连接但无法进行wss连接.

例如,当我尝试击中时,wss://echo.websocket.org我们Unknown source从jmeter-websocket插件中获得错误.

有人可以建议是否有任何解决方法使用此插件为wss.
我们需要做更多的配置吗?

错误:

[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)
Run Code Online (Sandbox Code Playgroud)

相同的请求(wss://echo.websocket.org)在https://www.websocket.org/echo.html上运行良好.

UBI*_*ACK 0

似乎正在发生 NPE,这可能表明插件中存在错误。

尽管插件自 2014 年以来似乎没有更新,但您应该在那里报告更多详细信息。

您可能想看看 websocket 的替代和维护的 JMeter 插件:

它可以通过JMeter Plugins插件管理器获得。