jmeter generate HTML performance test report

Performance testing tools Jmeter because of its small size, easy to use, low cost learning reasons, the current performance testing, the growing use, but which itself also has some disadvantages, such as test results provided by very visual overtaken general.

But from version 3.0, jmeter introduced Dashboard Report module to generate HTML type of visualization graphical reporting (version 3.0 Dashboard Report module Chinese gibberish, it is recommended to use more than 3.0 version).

This blog, a brief introduction in the use of jmeter performance testing, test report generation visualization of HTML. . .

 

One, two ways to generate HTML test report

1, using the existing .jtl files to generate reports

Previous blog how introduced in linux environment running jmeter and generate reports , if you already have tested .jtl file generated, you can use the generated HTML files directly visualize the test report.

Under jmeter into the bin directory, enter the following command:

-o -g test.jtl jmeter / path 
# -g: the path followed by the file is located test.jtl 
# -o: heel generated HTML files stored path

PS: If you are in a Windows environment, run the command line, you must specify the generated HTML file storage folder, otherwise it will error; if it is linux environment, such as the absence of the folder path is specified, it will generate the corresponding folder to store report files!

 

2, no .jtl file test report generation

If .jtl file has not been generated, the following command can be, in one operation test execution and report generating HTML visual operation, into the lower jmeter bin directory, enter the following:

Copy the code
-n -e -t the -l test.jtl jmeter -o / path test.jmx 
# -n: running non-GUI form Jmeter 
# -t: source.jmx script path 
# -l: result.jtl operating results save path ( .jtl), the file must not exist 
# -e: generate html reports at the end of the script 
# -o: directory to hold the html report
Copy the code

My local Windows environment perform the following screenshot:

PS: (as linux system and windows system commands) Note that generated .jtl under the file path, can not exist with the same name .jtl file, otherwise it will fail.

After machining, the open index file in the file directory generated by the browser, the effect is shown below:

 

Second, the chart Detailed information

Test report is divided into two parts, Dashboard and Charts, resolved separately below.

1, Dashboard (overview dashboard)

①、Test and Report informations

②, APDEX (application of performance indicators)

Information about APDEX, see here: application performance ; the original English text, the reference here: Apdex-Wikipedia

③、Requests Summary

 

2, Charts (Chart details)

PS: As the chart a bit more details, here I pick a few more crucial performance testing chart parsing!

Over Time

①, Response Times Over Time (response time duration of the script change trend graph)

Note: according to the number of concurrent changes in response to changes in time and TPS and analog and determines the inflection point of the performance range.

②、 Response Time Percentiles Over Time (successful responses)

Description: the percentage of successful request response time profile during script, which can be understood as different polymeric% reporting data, a graphic representation of the results.

③, Bytes Throughput Over Time (during a certain trend FIG script)

Description: In the capacity planning, usability testing, and large file upload and download scenario, the throughput is very important to monitor and analyze metrics.

④, latencies Over Time (response during script delay variation trends) 

Description: In high concurrency scenarios or strong business and strong data consistency scene, the delay is a very serious factor.

 

Throughput

①, Transactions Per Second (transactions per second)

Description: The number of transactions per second that TPS, it is important to test the performance of an index, which is used to measure an important indicator of system capacity.

 

Response Times

①,  the Response Time Percentiles (percentage response time distribution curve)

Description: the response time of the request within a certain range occupied ratio, compared to the average response time in all of the number of requests, this value is more suitable to measure the stability of the system.

②, Time Vs of the Threads (curve corresponding to the average response time and the number of threads)

Description: may be used as a reference value determined by the performance of the inflection point of this curve corresponding to the change.

 

Above, is the method jmeter generate test reports in HTML format and content analysis reports, personally I feel that the chart can be developed again, become more flexible and easy to use. . .

Guess you like

Origin www.cnblogs.com/zhaoyq/p/10944086.html