'How to pass json data through websocket sampler in jmeter?

How to pass json data through websocket sampler in jmeter?

As I am not able to do testing of websocket using jmeter.

Need Help regarding web socket. If any body have worked on this then please help me out.

please connect me on my email : [email protected]



Solution 1:[1]

JSON is a sub-type of plain text so just put your JSON payload into "Request data" input field:

enter image description here

In the above example I refer to JMeter WebSocket Samplers by Peter Doornbosch plugin. The description from the author is very good and there is a number of sample scripts you can use as a reference

check out JMeter WebSocket Samplers - A Practical Guide article if you need comprehensive instructions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T