简体   繁体   中英

How to generate a custom JMeter report from aggregate report statistics?

JMeter produces detailed report as dashboard but I would like to create my own summary as a simple HTML page with relevant execution parameters and few samplers statistics in a table. As a global summary, this generation may be triggered once at the end of test plan execution.

Inspired from JMeter JSR223 Listener for ExtentReports needs improvement it looks like possible to integrate such report generation as a JSR223 listener.

If such a listener is the correct option, how to retrieve (or compute again) samplers statistics already available in Aggregate Report listener like count, avarage, min, max, percentil?

Any alternative way is welcomed too. Many thanks in advance

You can generate a CSV version of the Aggregate Report using JMeter Plugins Command Line Tool like:

JMeterPluginsCMD.bat --generate-csv AggregateReport.csv --input-jtl /path/to/your/test/result.jtl --plugin-type AggregateReport 

Then you can create a simple HTML page from it using ie CSV to HTML Table project or the same FreeMarker engine which JMeter uses for the HTML Reporting Dashboard

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