简体   繁体   中英

Jmeter save results as Html

I am using jmeter for functional testing and want to store the result from the view result tree listener to a file in html format.

Is that somehow possible? Actual I just can save the result as xml.

If you want to convert .jtl files, try this. (Just watch out that .jtl is regular CSV file, no columns missing):

jmeter -g [absolute_path_to_jtl_file] -o [path_to_some_empty_folder]

It works fine for me.

您可以使用侦听器将响应保存到文件 ,并将请求的响应存储在文件中。

You can "tell" JMeter to save response body into .jtl results file the following way:

  1. For one time execution it could be done via -J command line arguments:

     jmeter -Jjmeter.save.saveservice.output_format=xml -Jjmeter.save.saveservice.response_data=true -n -t ... 
  2. For "permanent" changes add below lines to user.properties file (it sits under JMeter's bin folder)

     jmeter.save.saveservice.output_format=xml jmeter.save.saveservice.response_data=true 

Be aware that in case of heavy load test it will result in massive disk IO on JMeter size so it's recommended to store response data for test development and/or debugging purposes only.

If you're not interested in default metrics like timestamp, label, response code, elapsed, etc. - you can turn them off taking this "properties" approach.

References:

SmartMeter (free JMeter extension) is capable of doing HTML reports, even from existing JTL files. Read more in this article .

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