常用格式:jmeter_home/bin/jmeter -n -t testplan.jmx -l test.csv
summary + 是增量报告
summary = 是总量报告
看看下图结果,这样的数据统计在一些场景上,对结果数据分析有很大的帮助
官网原文如下:
For non-interactive testing, you may choose to run JMeter without the GUI. To do so, use the following command options:
-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].
-j [name of JMeter run log file].
-r Run the test in the servers specified by the JMeter property "remote_hosts"
-R [list of remote servers] Run the test in the specified remote servers
The script also lets you specify the optional firewall/proxy server information:
-H [proxy server hostname or ip address]
-P [proxy server port]
Example: jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000
If the property jmeterengine.stopfail.system.exit is set to true (default is false), then JMeter will invoke System.exit(1) if it cannot stop all threads. Normally this is not necessary.
jennie哈哈 发表于 2016-2-4 16:09
启动之后怎么停止呢??
joyzym 发表于 2016-1-7 12:08
那么非GUI下做分布式测试如何启动?
jennie哈哈 发表于 2016-2-4 16:09
启动之后怎么停止呢??
o蜗牛快跑o 发表于 2016-2-14 09:07
shutdown命令,或者ctrl+c
这个是强制退出,一般跑完自动退
jennie哈哈 发表于 2016-2-19 09:13
楼主,为什么我的运行了,结果没有增量报告呢?求指教
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |