Can we add header information to a web socket sampler in JMeter?

I get the following error when I used my localhost url and 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)

there is no way to add header information e.g. in the http sampler in JMeter

+4
source share
1 answer

You can add headers in JMeter for WS. Right-click on the sampler> Add> Configuration Item> HTTP Header Manager.

+2
source

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


All Articles