Gogo
Gogo

Reputation: 21

How to convert .jtl to .xml file in Jmeter

I have an existing .jtl file, and I want to convert this file to .xml using Jmeter.

Can anyone help how to convert this file in Jmeter?

Upvotes: 2

Views: 1353

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

  1. If you have existing .jtl results file in CSV format and want to convert it to XML you can use Filter Results Tool like:

    FilterResults.bat --output-file result.xml --input-file result.jtl --save-as-xml true
    
  2. If you want to switch JMeter to save its results in XML going forward - add the next line to user.properties file (lives in "bin" folder of your JMeter installation)

    jmeter.save.saveservice.output_format=xml
    

    More information: Results File Configuration

  3. If you want both XML and CSV you can add a Listener, i.e. Simple Data Writer and choose what, where and how to store there:

    enter image description here

    More information: How to Save Response Data in JMeter

Upvotes: 2

Related Questions