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:
- Automatically generate HTML graphical reports for this test at the end of the JMeter performance test
- 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:
- APDEX (Application Performance Index) index
- Aggregated reports
- Similar to the Aggregate report on the UI
- Errors Report
- Show the number and percentage of different error types
- Response Time Change curve
- Show average response time over time
- Similar to JMeter plugins on the UI [email protected]-Response times over time
- 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
- Latency Time Change curve
- Show latency time changes over the years
- Similar to JMeter plugins on the UI [email protected]-Response latencies over time
- Number of hits per second curve
- Similar to JMeter plugins on the UI [email protected]-Hits per Second
- 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
- 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
- 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)
- Latency time vs. Requests per second diagram
- Shows the relationship between latency time and the number of requests per second
- Response Time percentile bitmap
- Percentile distribution map of response time
- Number of active threads change curve
- Show the number of active threads over time during testing
- 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
- 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