Non-GUI

-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
-g
[path to CSV file] generate report dashboard only
-e
generate report dashboard after load test
-o
output folder where to generate the report dashboard after load test. Folder must not exist or be empty

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

2.Linux环境下
执行命令:/home/apache-jmeter-2.8/bin/jmeter -n -t download.jmx -l log.jtl
linux下最好输全路径,不然可能报bash:jeter:command not found,找不到执行文件错误

你可能感兴趣的:(Non-GUI)