2014-07-01 33 views
2

我通過jenkins運行JMeter進行使用命令行選項的性能測試。我已經寫一個JTL文件時,我做的命令,如:JMeter命令行中的多個日誌文件

Java的罐子路徑的JMeter -n -t JMX文件-l日誌文件

我想也把結果放到另一個日誌文件存儲在另一個位置,但我不能通過在-l命令之後放置另一個路徑或放入另一個-l命令來使其工作。無論如何要做到這一點?

謝謝

回答

1

檢查這些選項。你應該使用選項'-j'。這對我來說可以。

-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