当我使用localhost url和ws protocol
时,我收到以下错误[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)
无法在JMeter中的http sampler中添加标题信息
答案 0 :(得分:2)
您可以在JMeter for WS中添加标头。右键单击采样器>添加>配置元素> HTTP标头管理器。