linux下使用命令行執行jmeter的方法


JMeter -n -t 文件名.jmx -l log.jtl

 

 

來進行測試,如果無法執行請檢查自己機器的環境變量.
參數說明:

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].

-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]

Example : JMeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000

 

上面這段說明來自 JMeter 的官方用戶手冊。其中提到了使用命令行方式運行 JMeter 腳本的方法。只有幾個簡單的參數,很直觀,用起來也很方便。好處是可以節省一些系統資源。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM