JMeter 生成测试报告
2020-06-29 本文已影响0人
玉舒
1、GUI模式
![](https://img.haomeiwen.com/i1316943/75ffab522a75408d.png)
2、命令模式
jmeter -n -t test.jmx -l test.jtl -e -o /path
-n:以非GUI形式运行Jmeter
-t:source.jmx 脚本路径
-l:result.jtl 运行结果保存路径(.jtl),此文件必须不存在
-e:在脚本运行结束后生成html报告
-o:用于存放html报告的目录
![](https://img.haomeiwen.com/i1316943/cf087eae2d098ec6.jpg)
1、GUI模式
2、命令模式
jmeter -n -t test.jmx -l test.jtl -e -o /path