In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Many friends are asking jmeter how to generate test reports. Here are a few words casually.
Environmental requirements
Dynamic generation of test reports is supported after the 1:jmeter3.0 version
2:jdk version 1.7 or above
3: jmx script file is required
Basic operation
1: under your script file path, execute the cmd command: jmeter-n-t test.jmx-l result.jtl-e-o / tmp/ResultReport
Parameter description:
●-n: execute JMeter in non-GUI mode
●-t: the location where the test file is executed
●-l: specify the saved file to generate the test results, jtl file format
●-e: generate a test report after the test is finished
●-o: specify the location of the test report
Note: the ResultReport at the end is the report folder you created manually. Before starting a command each time, the contents of the folder must be emptied with the jtl file
Here is a demonstration of a chestnut:
Jmeter- n-t D:\ gongju\ apache-jmeter-3.2\ bin\ lsmsp.jmx-l result.jtl-e-o D:\ gongju\ apache-jmeter-3.2\ bin\ HttpReport
In this command, the first red is my interface script path, the second red is the automatically generated jtl file, and the third red is the report folder path. This command can be executed under cmd (note that cmd must be executed under the script file path, otherwise you need to switch paths under cmd)
The implementation results are as follows:
The generated report is as follows:
The ending egg:
I had previously considered that every time I executed a command, I had to go to the directory to empty the report folder and jtl, and it was annoying to type a command. Later, I thought of a way, that is, to write a bat. Every time I execute bat, I will automatically empty the previous report, and then execute the command.
Del is to delete jtl,rd is to delete the report folder, md is to rebuild the report folder, and finally execute the command to generate the report. The implementation results are as follows:
This is a personal summary of a tip, I hope it will be useful to everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.