0
votes

enter image description hereI need to perform websocket testing using jmeter tool. I need to know that how can i pass the json request using websocket sampler in jmeter? Is it possible to use csv data set to pass multiple orders using websocket sampler in jmeter?

2
what type of server side do you integrate with? which messaging protocol does it use (e.g. Stomp)? Can you show example of websocket communication (e.g. Java code, or capture from some tool like Chrome Network tab) - Kiril S.
Its a websocket server. and the protocol we are using is ws. we are using jmeter tool for this. i have attached the screenshot aswell. please check and let me know. - testuser
@KirilS. Its a websocket server. and the protocol we are using is ws. we are using jmeter tool for this. i have attached the screenshot aswell. please check and let me know - testuser

2 Answers

2
votes

You should use this plugin:

Which you can install with jmeter-plugins download manager:

You can then use JMeter CSV Data Set to get data from a CSV and pass it in body of Websocket

0
votes

I would suggest going for the following test elements combination:

  1. Directory Listing Config plugin to read all files under a specified path into a JMeter Variable, i.e. filename
  2. __FileToString() function to read file contents and send it along with the request like ${__FileToString(${filename},,)}

    JMeter Directory Listing Config

You can install Directory Listing Config plugin using JMeter Plugins Manager.