jmeter3.0_ graphical HTML report with multidimensional dimensions

Source: Internet
Author: User

I. Introduction to New Features

JMeter3.0 provides an extension module for generating graphical reports of HTML page formatting . This module supports the creation of multidimensional graphical test reports in two ways:

    1. Automatically generate HTML graphical reports for this test at the end of the JMeter performance test
    2. Use an existing result file (such as a CSV file) to generate an HTML graphical report of the result

The metrics dimensions that are provided by default include:

  1. APDEX (Application Performance Index) index
  2. Aggregated reports
    • Similar to the Aggregate report on the UI
  3. Errors Report
    • Show the number and percentage of different error types
  4. Response Time Change curve
    • Show average response time over time
    • Similar to JMeter plugins on the UI [email protected]-Response times over time
  5. Data throughput Time Curve
    • Show how data throughput changes over time per second
    • Similar to JMeter plugins on the UI [email protected]-Bytes throughput over time
  6. Latency Time Change curve
    • Show latency time changes over the years
    • Similar to JMeter plugins on the UI [email protected]-Response latencies over time
  7. Number of hits per second curve
    • Similar to JMeter plugins on the UI [email protected]-Hits per Second
  8. HTTP status code time distribution curve
    • Show the distribution of response status codes over time
    • Similar to JMeter plugins on the UI [email protected]-Response Codes per Second
  9. Transaction throughput Time Curve (TPS)
    • Show the number of transactions processed per second over time
    • Similar to JMeter plugins on the UI [email protected]-transactions per Second
  10. Graph of average response time vs. Requests per second
    • Show the relationship between average response time and requests per second (can be understood as QPS)
  11. Latency time vs. Requests per second diagram
    • Shows the relationship between latency time and the number of requests per second
  12. Response Time percentile bitmap
    • Percentile distribution map of response time
  13. Number of active threads change curve
    • Show the number of active threads over time during testing
  14. Graph of average response time and number of threads
    • Show the relationship between average response time and number of threads
    • Similar to JMeter plugins on the UI [email protected]-Response times vs Threads
  15. Column Response Time Distribution chart
    • Shows the number of requests falling across the average response time interval
time = 接收到响应的第一个字节的时间点 - 请求开始发送的时间点

From just before sending the request to just after the first response have been received
--Apache JMeter Glossary

time) = 接收完所有响应内容的时间点 - 请求开始发送的时间点

From just before sending the request to just after the last response have been received
--Apache JMeter Glossary

Two. Quick start 1. Confirm Basic Configuration
  • Confirm the following configuration items in Jmeter.properties or user.properties:
    Jmeter.save.saveservice.data_type=true
    Jmeter.save.saveservice.label=true
    Jmeter.save.saveservice.response_code=true
    # Response_data isn't currently supported for CSV output
    Jmeter.save.saveservice.response_data=true
    # Save ResponseData for failed samples
    Jmeter.save.saveservice.response_data.on_error=false
    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.subresults=true
    Jmeter.save.saveservice.assertions=true
    Jmeter.save.saveservice.latency=true
    Jmeter.save.saveservice.connect_time=true
    Jmeter.save.saveservice.samplerdata=true
    Jmeter.save.saveservice.responseheaders=true
    Jmeter.save.saveservice.requestheaders=true
    Jmeter.save.saveservice.encoding=false
    Jmeter.save.saveservice.bytes=true
    Jmeter.save.saveservice.url=true
    Jmeter.save.saveservice.filename=true
    Jmeter.save.saveservice.hostname=true
    Jmeter.save.saveservice.thread_counts=true
    Jmeter.save.saveservice.sample_count=true
    Jmeter.save.saveservice.idle_time=true

    # Timestamp Format-this only affects CSV output files
    # legitimate Values:none, MS, or a format suitable for SimpleDateFormat
    Jmeter.save.saveservice.timestamp_format=ms
    Jmeter.save.saveservice.timestamp_format=yyyy/mm/dd HH:mm:ss. Sss
  • If you want to show more detailed data in the errors report, you need to ensure that the following configuration
    • jmeter.save.saveservice.assertion_results_failure_message = true
    • If the transaction controller is used, verify that Generate Parent sample is not checked Transaction
2. Generate reports

A. Reporting at the end of a stress test

    • Basic command format:
      jmeter -n -t <test JMX file> -l <log file> -e -o <Path to output folder>
    • Examples:
      jmeter -n -t E:\apache-jmeter-3.0\script\test.jmx -l LogFile -e -o ./report

B. Generating a report using an existing stress test CSV log file

    • Basic command format:
      jmeter -g <log file> -o <Path to output folder>
    • Examples:
      jmeter -g E:\apache-jmeter-3.0\bin\LogFile -o ./report

The two samples will produce the following files (clips) in the \apache-jmeter-3.0\bin\report directory:


You can view a variety of graphical reports by opening the index.html file in your browser:



Note: In version 3.0, due to the problem of character encoding in the source code, it may be encountered in the generated report, the Chinese label is displayed as garbled problem

Solution: Modify the JMeter report module to read the data in the source code of the character set to UTF-8, compile and replace toJMETER_HOME\lib\ext\ApacheJMeter_core.jar

Download Link: http://pan.baidu.com/s/1kVpsnNx

jmeter3.0_ graphical HTML report with multidimensional dimensions

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.