Reputation: 21
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
Reputation: 168157
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
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
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:
More information: How to Save Response Data in JMeter
Upvotes: 2