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]