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

124 views
Skip to first unread message

Vincent Daburon

unread,
Mar 13, 2024, 6:01:06 AMMar 13
to jmeter-plugins
Hi,
I created a tool to convert a HAR network  file created 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 like that 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"

Regards.
Vincent DAB.browsers_har_convertor_script_record.png

Vincent Daburon

unread,
Mar 18, 2024, 10:46:53 AMMar 18
to jmeter-plugins
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

Regards.
Vincent DAB.

Vincent Daburon

unread,
Apr 2, 2024, 3:35:55 AMApr 2
to jmeter-plugins
Version 3.2 for bugs corrections

Regards.
Vincent DAB.

Vincent Daburon

unread,
Apr 4, 2024, 4:13:16 AMApr 4
to jmeter-plugins
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.

Liliane et Robert Bourgault du Coudray

unread,
Apr 4, 2024, 9:22:27 AMApr 4
to jmeter-...@googlegroups.com
Well done Vincent!

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jmeter-plugins/d7560ec2-69b1-40b1-afee-5ebe7945304cn%40googlegroups.com.

Vincent Daburon

unread,
May 13, 2024, 10:20:32 AMMay 13
to jmeter-plugins
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:01:06 AM UTC+1 Vincent Daburon wrote:

Vincent Daburon

unread,
Jun 24, 2024, 3:36:24 AM (10 days ago) Jun 24
to jmeter-plugins
Hi,
New version 5.2 that corrects a bug  for mime type "form-urlencoded" ended with charset likes "application/x-www-form-urlencoded; charset=xxx" => bug no parameter for POST http request. 
But this now OK with this version 5.2

Regards
Vincent DAB.
On Wednesday, March 13, 2024 at 11:01:06 AM UTC+1 Vincent Daburon wrote:
Reply all
Reply to author
Forward
0 new messages