简体   繁体   English

我们可以在JMeter中向Web套接字采样器添加头信息吗?

[英]Can we add header information to web socket sampler in JMeter?

I am getting following error when I was using my localhost url and ws protocol 当我使用localhost url和ws协议时,我收到以下错误

[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:429)
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
java.lang.Thread.run(Unknown Source)

there is no way to add header information like in http sampler in JMeter 无法在JMeter中的http sampler中添加标头信息

You can add the headers in JMeter for WS. 您可以在JMeter for WS中添加标头。 Right click on the sampler > Add > Config Element > HTTP Header Manager. 右键单击采样器>添加>配置元素> HTTP标头管理器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM