下载安装 jmeter
jmeter.save.saveservice.output_format=xml
- 运行 jmeter.bat
- 配置测试计划
File
-->New
Add
-->Thread(Users)
-->Thread Group
Number of Threads (users)
Loop Count
Add
-->Sampler
-->HTTP Request
Server Name or IP
Path
Add
-- >Listener
-->View results in table
jmeter.bat -j jmeter.save.saveservice.output_format=xml -n -t test.jmx -l test.report.jtl
New Item
-->freestyle project
-->Add build step
-->Execute Windows batch command
C:\apache-jmeter-5.6.2\bin\jmeter.bat -j jmeter.save.saveservice.output_format=xml -n -t C:\apache-jmeter-5.6.2\bin\test.jmx -l C:\apache-jmeter-5.6.2\bin\test.report.jtl
Add post-build
-->Publish Performance test result report
C:\apache-jmeter-5.6.2\bin\test.report.jtl