You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 7.0, Use new library har-to-jmeter-convertor 7.0 add manage the websocket connection and messages with 'WebSocket Samplers by Peter Doornbosch', add checkbox for boolean parameter 'ws_with_pdoornbosch' (default unchecked == false).
Copy file name to clipboardExpand all lines: README.md
+38-3Lines changed: 38 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
9
9
An article about motivations to create this tool: https://dzone.com/articles/convert-a-har-file-to-jmeter-script
10
10
11
+
Since version 7.0, **Websocket** is manage with samplers from the plugin "WebSocket Samplers by Peter Doornbosch".
12
+
11
13
## GUI interface in the JMeter Tools Menu
12
14
This tool is present in the Menu Tools > vdn@github - HAR Convertor Tool
13
15
@@ -25,6 +27,7 @@ Parameters are :
25
27
* record_out create the record xml file from the har file (could be open with the Listener View Results Tree) <br/>
26
28
e.g. record_out = record.xml
27
29
* add_result_tree_record, add a View Result Tree to view the Recording XML File Generated (default true), the record_out must be not empty
30
+
* ws_with_pdoornbosch, create WebSocket Sampler if HAR contains WebSocket Connection (ws or wss) and WebSocket Exchange message (default false). Need this JMeter plugin "WebSocket Samplers by Peter Doornbosch" to open generated JMeter script.
28
31
* external_file_infos, external csv file contains information about Timestamp, Transaction Name, date start or end. <br/>
29
32
e.g. external_file_infos = myappli_transactions.csv
30
33
* new_tc_pause time between 2 urls to create a new page (Transaction Controller) (default 5000 = jmeter property value : proxy.pause=5000) <br/>
@@ -130,6 +133,32 @@ The BrowserUp Proxy **active** project is available at this url : <br/>
130
133
131
134
Note : The BrowserMod Proxy tool is no more active (since september 2017) and it's recommended to migrate to BrowerUp proxy https://github.com/valfirst/browserup-proxy the "valfirst" GitHub username is important.
132
135
136
+
The BrowserUp Proxy **active** project is available at this url : <br/>
137
+
[Goto the BrowserUp Proxy active project](https://github.com/valfirst/browserup-proxy)
138
+
139
+
Note : The BrowserMod Proxy tool is no more active (since september 2017) and it's recommended to migrate to BrowerUp proxy https://github.com/valfirst/browserup-proxy the "valfirst" GitHub username/project is important.
140
+
141
+
## Websocket use the plugin "WebSocket Samplers by Peter Doornbosch"
142
+
If your Har file contains WebSocket Connection and Messages, check the checkbox <code>ws_with_pdoornbosch</code> (set true), this tool will try to create Websocket Samplers in the JMeter script generated and the exchanges in the Recording XML file if you set the record xml file name.
143
+
144
+
Documentation at : https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/
145
+
146
+
The HAR is record from **Chrome** Browser not Firefox Browser and not Egde Browser (research in har file the attribute : '_webSocketMessages').
147
+
148
+
Currently limitation to only one websocket connection and multi text messages (send or receive) in this websocket connection (binary message is not tested).
149
+
150
+
Text message could be on "STOMP" format (https://en.wikipedia.org/wiki/Streaming_Text_Oriented_Messaging_Protocol) or no "STOMP" (simple text).
151
+
152
+
Need the plugin "WebSocket Samplers by Peter Doornbosch" to open the generated script that contain Websocket Samplers.
153
+
154
+
This demonstration use the web site : https://websocket.org/tools/websocket-echo-server/
155
+
156
+

157
+
158
+
If you click on the checkbox "Create WebSocket Sampler if HAR contains WebScoket Connection" but the JMeter **have not the plugin** "WebSocket Samplers by Peter Doornbosch" a warning message is display and the button "CONVERT AND LOAD GENERATED SCRIPT" is disable.
159
+
160
+

161
+
133
162
134
163
## More documentation from har-to-jmeter-convertor CLI Tool
135
164
This plugin use a **library** from the Command Line Interface tool (har-to-jmeter-convertor)<br/>
Version 7.0 date 2025-02-27, Use new library har-to-jmeter-convertor 7.0 add manage the websocket messages with 'WebSocket Samplers by Peter Doornbosch', add checkbox for boolean parameter 'ws_with_pdoornbosch' (default unchecked == false).
246
+
212
247
Version 6.1 date 2025-01-28, Use new library har-to-jmeter-convertor 6.1 to correct a NullPointerException when creating the Recording XML file.
213
248
214
249
Version 6.0 date 2024-09-19, Use new library har-to-jmeter-convertor 6.0 for adding 'HTTP(S) Test Script Recorder' and 'View Results Tree' to view the Record.xml file created. Correct save file no url encoded name.
0 commit comments