简体   繁体   中英

Is there any way to customize the JMeter report?

I have my JMeter scripts (.jmx) ready to run a performance test. The script works fine and the HTML reports are generated, but the report does NOT have any information on which environment(ST/ET/QA) the tests was run against.

Is there any way to add environment/custom information to the report?

Command:

Jmeter -n -t -Jenv="ST"   test.jmx  -l output.jtl  -e -o Dashboard    

test.jmx = script which is auto-generated
output.jtl = user defined file for output
Dashboard = user defined directory to store HTML dashboards

I believe you're looking for the jmeter.reportgenerator.report_title property so if you run the report generation as:

Jmeter -n -t -Jenv="ST" -Jjmeter.reportgenerator.report_title=ST -l output.jtl  -e -o Dashboard

在此处输入图像描述

More information:

@Dmitri T shared the right link. One thing I want to add that you can choose what info to write to the logs through the Results tree settings. See the screenshot here

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