我们正在尝试使用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上运行良好.