JMeter Generating HTML format test reports

Source: Internet
Author: User

Using JMeter for performance testing, after running the test report generated in HTML format, you need to do the following:

1. Add the following information to the user.properties text in the C:\apache-jmeter-3.0\bin folder:

Jmeter.save.saveservice.assertion_results_failure_message=true

Jmeter.save.saveservice.response_code=true

Jmeter.save.saveservice.response_message=true

Jmeter.save.saveservice.successful=true

Jmeter.save.saveservice.thread_name=true

Jmeter.save.saveservice.time=true

Jmeter.save.saveservice.bytes=true

Jmeter.save.saveservice.thread_counts=true

Jmeter.save.saveservice.timestamp_format=ms

Jmeter.save.saveservice.timestamp_format=yyyy/mm/dd HH:mm:ss. Sss

# Configure the the report title

#jmeter. Reportgenerator.report_title=apache JMeter Dashboard

# change this parameter if you want to change the granularity of over time graphs.

#jmeter. reportgenerator.overall_granularity=60000

Change this parameter if want to change the granularity of Response time distribution

# Set to $ MS by default

#jmeter. reportgenerator.graph.responsetimedistribution.property.set_granularity=500

# parameter If you want to override the APDEX satisfaction threshold.

jmeter.reportgenerator.apdex_satisfied_threshold=1500

# parameter If you want to override the APDEX tolerance threshold.

jmeter.reportgenerator.apdex_tolerated_threshold=3000

# Sets the destination directory for generated HTML pages, it's better to change it for every generation

# This would override the value set through-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 Order 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 series

Jmeter.reportgenerator.exporter.html.filters_only_sample_series=true

2. Run the JMeter program and enter the following information at the command line:

1) Windows system

The input format is as follows: Jmeter.bat-n-T <test JMX file>-L <test log file>-e-o <path to output folder>

Actual input: C:\apache-jmeter-3.0\bin\jmeter.bat-n-t movie.jmx-l movie.jtl-e-O test

2) Linux System

The input format is as follows: Jmeter-n-T <test JMX file>-L <test log file>-e-o <path to output folder>

Actual input:/opt/apache-jmeter-3.0/bin/jmeter-n-T final-result.jmx-l final-result.jtl-e-o/opt/apache-jmeter-3.0/test

JMeter Generate HTML Format test report

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.