windows和linux下使用命令行执行jmeter的方法:
JMeter -n -t 文件名.jmx -l log.jtl
来进行测试,如果无法执行请检查自己机器的环境变量.参数说明:
-n This specifies JMeter is to run in non-gui mode
-t [name of JMX file that contains the Test Plan].
-l [name of JTL file to log sample results to].
-r Run all remote servers specified in JMeter.properties (or remote servers specified on command line by overriding properties)
The script also lets you specify the optional firewall/proxy server information:
-H [proxy server hostname or ip address]
-P [proxy server port]
本文介绍了如何在Windows和Linux环境下通过命令行方式运行JMeter进行性能测试。具体包括使用-n参数指定非GUI模式,-t参数指定测试计划文件,-l参数指定日志文件等。还介绍了如何设置代理服务器及远程运行。
6万+

被折叠的 条评论
为什么被折叠?



