Reputation: 1
Websocket load test - How to test using external sdk(js file) in Locust/jmeter/nodejs?
Any suggestions? I am new to this . Want to check for 50K load
Upvotes: 0
Views: 210
Reputation: 168092
You cannot load test a .js file
If the .js file provides implementation of a WebSocket server - you need to deploy/launch it somewhere and load test the deployment
JMeter doesn't support WebSocket protocol out of the box, you will need to install i.e. JMeter WebSocket Samplers, see JMeter WebSocket Samplers - A Practical Guide article if you need more comprehensive instructions
Locust doesn't support anything but HTTP protocol so you will need to use the plugin as well
Node.js is simply a JavaScript runtime, you either need to write the load tests from scratch or use an existing library like wsbench
Upvotes: 1