Tool to convert a HAR file in a JMeter script and a Record.xml file

115 views
Skip to first unread message

Vincent Daburon

unread,
Mar 13, 2024, 6:17:27 AMMar 13
to JMeter Forum
Hi,

I created a tool to convert a HAR network  file in a browser (Firefox, Chrome, Edge) with "Network" and save in HAR Format into a JMeter script and Record.xml file.

The goal is to get as close as possible to a result of a "classic" recording with the JMeter recording template with:
- a number of pages (Transaction Controller),
- a numbering of the samplers,
- a grouping of samplers in a Transaction Controller with a delay between urls,
- pause between pages.

The tool works on the command line (CLI) but also as a plugin for JMeter in the "Tools" menu.

This version 2.0 supports Http(s) requests in form-encoded, multi-part (upload file) and body often with JSON or XML streams and partially the websocket protocol (ws or wss).

The link to the github project:
https://github.com/vdaburon/har-convertor-jmeter-plugin

The name of the plugin in the plugin manager is: "vdn@github - har-convertor-jmeter-tool"

browsers_har_convertor_script_record.png
Regards.
Vincent DAB.

Vincent Daburon

unread,
Mar 18, 2024, 10:50:54 AMMar 18
to JMeter Forum
New version 3.0  "vdn@github - har-convertor-jmeter-tool"
  1. Add button "CONVERT AND LOAD GENERATED SCRIPT" to load the script in the current JMeter.
  2. File chooser only for file not for directory
har_convertor_tool_gui.png

Regards.
Vincent DAB.

Vincent Daburon

unread,
Apr 2, 2024, 3:35:15 AMApr 2
to JMeter Forum
Version 3.2 for bugs corrections.

Regards.
Vincent DAB.

Vincent Daburon

unread,
Apr 4, 2024, 4:12:51 AMApr 4
to JMeter Forum
Hi,
I wrote an article on the dzone site in the testing zone about the reasons for creating this tool and also a short user manual.
https://dzone.com/articles/convert-a-har-file-to-jmeter-script

Regards.
Vincent DAB.

On Wednesday, March 13, 2024 at 11:17:27 AM UTC+1 Vincent Daburon wrote:

Vincent Daburon

unread,
May 13, 2024, 10:24:00 AMMay 13
to JMeter Forum
New version 5.0 with the ability to read a CSV file that contains transaction information in order to rename the pages (Transaction Controller) in the generated JMeter script.

browers_har_external_csv_convertor_script_record.png

version 4.0 compatible with the HAR file created with the LoadRunner Web Recorder Chrome Extension. The generated HAR file contains a _transactions array with the name of the transactions, a timestamp and a start or stop type in order to rename the pages with additional information.
lrwr_chrome_extension_har_convertor_script_record.png


On Wednesday, March 13, 2024 at 11:17:27 AM UTC+1 Vincent Daburon wrote:
Reply all
Reply to author
Forward
0 new messages