123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Computers >> View Article

Websocket Load Testing Using Jmeter

Profile Picture
By Author: Fleek IT Solutions
Total Articles: 45
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

By default Jmeter does not provide websocket sampler, however you can download the external binaries and use them with Jmeter to do websocket testing

Step 1: Download the following dependent binaries and place them in Jmeter\lib\ext folder.

jetty-http-9.1.1.v20140108.jar
jetty-io-9.1.1.v20140108.jar
jetty-util-9.1.1.v20140108.jar
websocket-api-9.1.1.v20140108.jar
websocket-client-9.1.1.v20140108.jar
websocket-common-9.1.1.v20140108.jar
Step 2 Download Jmeter websocket sampler jar file and place it in Jmeter\lib\ext. You can download the latest version from https://github.com/maciejzaleski/JMeter-WebSocketSampler/releases

If your Jmeter is already opened then close it and start again.
You will see a new sampler “WebSocket Sampler” in sampler list.
You can add websocket sampler into your test plan and write your script.
Following check following websocket sampler configuration options:

Server Name or IP – your WebSocket server name or IP for example: websocket.org
Port Number –Port that WebSocket server listens to. By default it is ...
... 80.
Timeout:
Connection – maximum time in milliseconds for setting up a connection. Sampler fails if it takes longer time as specified in connection.
Response – maximum time in milliseconds it will wait for response message
Implementation – Only latest version RFC6455(v13) option is available
Protocol – Use to define WebSocket protocol to be used. “ws” prefix identifies the WebSocket connection and “wss” prefix identifies the WebSocket Secure connection
Streaming Connection – if selected then streaming connection will remain open and will be reused by subsequent requests otherwise the connection will be closed after the first response
Request Data – Used to define outgoing messages
Response Pattern – Sampler will wait for a response to contain the pattern defined until defined response timeout occurs
Message Backlog – Defines maximum count of response messages to keep
You can use http://www.websocket.org/echo.html for practice session. It use ws://echo.websocket.org server which responds back to client with the same message it received.

Total Views: 329Word Count: 266See All articles From Author

Add Comment

Computers Articles

1. Extract Trader Joes Grocery Store Location Data For Insights
Author: FoodDataScraper

2. Publix Grocery Data Scraping Services For Real-time Tracking
Author: Actowiz Solutions

3. Scraping Food Delivery Data From Menulog For Business Intelligence
Author: Food Data Scrape

4. Why Transportation Companies Need Embedded Bi Tools – Helical Insight
Author: Vhelical

5. Time Attendance System Singapore | 1 Sgd Mobile Attendance Easy Setup
Author: guard

6. Employee Gps Mobile Time Attendance | 1 Sgd Per Month Payroll Integration
Author: guard

7. Gps Nfc/qr Guard Tour Patrol – Free Payroll – 30sgd Monthly Subscription
Author: guard

8. Elearning Security Officers & Free Payroll – 30sgd Monthly Subscription
Author: guard

9. Guard Tour System & Security Patrol – 30sgd Per Month Plan
Author: guard

10. Top Benefits You Gain When You Hire Oracle Sql Developer For Efficient Data Management
Author: Stellanova GlobalTech

11. Discover How Microsoft Purview Compliance Manager Simplifies Cmmc Compliance For Gcc High Environment
Author: ECF Data

12. Scraping Food Ingredient Info From Sydney, Australia, For Insights
Author: Food Data Scrape

13. Best Website Design Perlis | Rm499 Unlimited Pages – Creative Solutions
Author: mobiwork

14. Rm499 Unlimited Pages Custom Web Application Development | Quality Guaranteed
Author: mobiwork

15. Flexible Work Arrangement & Free Payroll – 1sgd Monthly Pricing
Author: mobiwork

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: