Use JMX and HAR import to convert existing files into reusable sequences in Leapwork Performance. This helps you avoid building sequences manually.
Before you begin
-
Ensure you can create assets in the target workspace folder.
-
Prepare the
.jmxor.harfile on your computer. -
Ensure HAR files are 50 MB or smaller.
JMX import supports common elements such as If/Else, HTTP calls, Wait steps, For loop counters, and comments. Unsupported elements are added as comments in the sequence for review.
Import a JMX file
-
Open the Explorer in Leapwork Performance.
-
Right-click the folder where you want to create the sequence.
-
Select Import JMX as Sequence.
-
Select your
.jmxfile. -
Wait for the import to complete.
-
Open the generated sequence.
Import a HAR file
-
Open the Explorer in Leapwork Performance.
-
Right-click the folder where you want to create the sequence.
-
Select Import HAR as Sequence.
-
Select your
.harfile. -
Wait for the import to complete.
-
Open the generated sequence.
Review the imported sequence
-
Confirm that the requests and flow match your expectations.
-
Review any comments added during JMX import.
-
Identify parts of the original file that were not converted.
-
Edit the sequence as needed.
-
Run a preview to validate the sequence.
Verify results
-
The sequence appears in the selected folder.
-
The sequence reflects the expected requests and structure.
-
The preview runs without errors.
Troubleshooting
Why does my HAR file not import?
The file may be larger than 50 MB.
Reduce the file size and import it again.
How do I exclude requests when importing a HAR file?
When importing a HAR file, use the Exclude requests options in the Import HAR dialog to exclude specific request types / rules (for example Images, CSS, JavaScript, Fonts, Media, HTML, or Ignore CORS preflight (OPTIONS)). You can also enter Patterns as comma-separated or regex patterns.
Why is my imported JMX sequence missing behavior?
Some elements in the JMX file are not supported.
Review the comments in the sequence to identify which parts were not converted.
Why does the imported result not match what I expected?
The source file may not contain the correct requests or traffic.
-
Check the original JMX or HAR file.
-
Export the file again with the required data.
-
Import the updated file.
How do I confirm the issue is resolved?
-
The imported sequence reflects the expected behavior.
-
The preview runs successfully.
What should I do if the issue persists?
Recheck the source file content and how it was exported.