Creating a JMeter script with WebSocket messages from HAR network exchanges.

47 views
Skip to first unread message

Vincent Daburon

unread,
Feb 28, 2025, 4:24:00 AMFeb 28
to jmeter-plugins
Hi,

To test the performance of a web application developed by a colleague, I used JMeter.

The web application uses WebSockets to communicate votes (poker planning) between participants in the same session.

With JMeter, it is not possible to record WebSocket type exchanges.

I added to the "har-convertor-jmeter-tool" tool in version 7.0 the functionality to create WebSocket Connection and WebSocket Samplers to READ and/or WRITE messages.

With Chrome, open DevTools, Network tab :
- Browse the application to create http(s) and ws(s) network exchanges, record the exchanges in HAR format.
- Then with the conversion tool as input: the HAR file and as output: a JMeter script and an XML file with the exchanges visible in a "View Results Tree".

JMeter plugin to convert HAR file to JMeter script and record.xml file

https://github.com/vdaburon/har-convertor-jmeter-plugin

jmeter_websocket_script_and_xml_record.png

Reply all
Reply to author
Forward
0 new messages