[Test] Steps for JMeter to do stress testing

[Test] Steps for JMeter to do stress testing

1. First configure the number of threads and execution time in the Jmeter visual interface

 2. Click to save the test sample to a specified directory, such as D:\CodeSoftware\apache-jmeter-test-case\test case-01.jmx

 3. Execute the following command on the command line to start the stress test:

D:\>CodeSoftware\apache-jmeter-5\apache-jmeter-5.5\bin\jmeter -n -t D:\CodeSoftware\apache-jmeter-test-case\test case-01.jmx -l log.jtl

 4. The test log [log.jtl] here is that it will be directly stored in the root directory of the D drive. The log.jtl file is the test report. After opening, it is as follows:

5. The form of this text is not very friendly, you can copy a copy, and then modify the suffix of the log file to [.csv] format, which is a form, as follows:

 6. Finally, generate a stress test report in the form of a dashboard chart, using the following command:

 After the execution is complete, you can see that a [report1] folder has been generated in this directory, and this is the generated report

Guess you like

Origin blog.csdn.net/zh6526157/article/details/131052710