Jenkins integrated jmeter- performance automation
First of all, you need to confirm that in jmeter.properties, jmeter.save.saveservice.output_format=csv
New
Free style
Timing construction
Construction
Execute windows batch command
If exist "output" (rd / SQL Q output)
If exist "JOB_BASE_NAME%.csv" (del "JOB_BASE_NAME%.csv")
Set scrip_home=D:\ apache-jmeter-4.0\ bin
Jmeter-n-t% scrip_home%\% JOB_BASE_NAME%.jmx-Jthreads=100-Jloops=10-l% JOB_BASE_NAME%.csv-e-o output
Note: the specific number of threads and cycles are specified here, or variables can be used, using the following statement:
Jmeter-n-t% scrip_home%\% JOB_BASE_NAME%.jmx-Jthreads=%threads%-Jloops=%loops%-l% JOB_BASE_NAME%.csv-e-o output
Then, you need to define threads and loops, as follows:
Select Build with Parameters to set the parameters on the right.
But it seems that the browser is not compatible and cannot be filled in, so it cannot be used, so it can only be modified at any time in jenkins or in the .jmx script.
Operation after building-> Publish HTML reports, enter the path and name of the result file, and you can also add the result email notification, etc.
Build, view report
Note:
If the report generated above is ugly or has a problem, you need to run:
System.setProperty ("hudson.model.DirectoryBrowserSupport.CSP", "")
Rebuilt, the report will look much better.
Note 2:
Remark 3:
Using .jtl or .csv is fine