jmeter3.0 Generating Dashboard Performance test results in HTML format

Source: Internet
Author: User

jmeter3.0 above support to generate dashboard HTML report, the official website introduction: https://jmeter.apache.org/usermanual/generating-dashboard.html

The specific configuration is as follows:

1. Open the user.properties in the JMeter installation directory and add the following configuration

#---------------------------------------------------------------------------# Reporting configuration#---------------------------------------------------------------------------Jmeter.save.saveservice.output_format=csvjmeter.save.saveservice.bytes=trueJmeter.save.saveservice.label=truejmeter.save.saveservice.latency=trueJmeter.save.saveservice.response_code=trueJmeter.save.saveservice.response_message=truejmeter.save.saveservice.successful=truejmeter.save.saveservice.thread_counts=trueJmeter.save.saveservice.thread_name=trueJmeter.save.saveservice.time=true# The timestamp format must include the time and should include the date.# for example thedefault, which ismilliseconds since the Epoch:jmeter.save.saveservice.timestamp_format=ms# Or The following would also be Suitablejmeter.save.saveservice.timestamp_format= yyyy/mm/DD HH:mm:ssjmeter.save.saveservice.assertion_results_failure_message=true

2. User.properties Add the following:

# Configure Thisproperty to change the report Title#jmeter.reportgenerator.report_title=Apache JMeter dashboard# Change ThisParameterifYou want to the granularity of over time graphs.# granularity must be higher than +(1second) Otherwise throughput graphs 'll be a incorrect# see Bug60149#jmeter. Reportgenerator.overall_granularity=60000 Change ThisParameterifYou want to the granularity of Response time distribution# Set to -Ms bydefault#jmeter. Reportgenerator.graph.responseTimeDistribution.property.set_granularity= -# Change ThisParameterifYou want toOverrideThe APDEX satisfaction Threshold.jmeter.reportgenerator.apdex_satisfied_threshold= the# Change ThisParameterifYou want toOverrideThe APDEX tolerance threshold.jmeter.reportgenerator.apdex_tolerated_threshold= the# Sets the destination directory forGenerated HTML pages, it isBetter to change it forevery generation# this wouldOverrideThe valueSetThrough-o command line option# jmeter.reportgenerator.exporter.html.property.output_dir=/tmp/test-report# indicates which graph series is filtered (regular expression) # in the below example we filter on Search and O Rder samples# Note that the end of the pattern should always include (-success|-failure)?$# transactions per second suffixes transactions with"-success"Or"-failure"Depending # on the Result#jmeter.reportgenerator.exporter.html.series_filter=^ (search| Order) (-success|-failure)?$# Indicates whether series filter apply only on sample Seriesjmeter.reportgenerator.exporter.html.filters_only_ Sample_series=true

3. Command format for report generation after stress test:

Jmeter-n-T <test JMX file>-L <test log file>-e-o <path to output folder>

For example:

Jmeter-n-T D:\work\ performance \scrip\test1.jmx-l D:\work\ performance \SCRIP\RP/TESTLOGFILE.JTL-E-O D:\work\ performance \scrip\rp/output

4. command format for generating reports for existing log files:

Jmeter-g <log file>-o <path to output folder>

For example:

Jmeter-g D:\work\ Performance \scrip\rp/testlogfile.jtl-o D:\work\ performance \scrip\rp/output

5. Go to the appropriate directory to view, open index.html, you can see response time and TPS and other performance indicators

jmeter3.0 Generating Dashboard Performance test results in HTML format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.