简体   繁体   中英

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?

  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, ie Simple Data Writer and choose what, where and how to store there:

    在此处输入图像描述

    More information: How to Save Response Data in JMeter

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM