简体   繁体   中英

How can I generate Test result (CSV)file and JTL file in jmeter?

After test run, How can I generate Test result (CSV)file and JTL file in jmeter. Because, this jtl file using to generate Dashboard report in jmeter3.0.

So, kindly give me solution.

Thanks, Vairamuthu.

  1. JMeter test result .jtl files should be generated during each test run given you provide results file location via -l command line argument
  2. .jtl files format defaults to CSV
  3. You can generate dashboard after test execution as follows:

     jmeter -n -t /path/to/test.jmx -l /path/to/results/jtl -e -o /path/to/html/report/folder 

References:

您可以通过如下设置jmeter.properties文件中的属性来更轻松地解决它。

jmeter.save.saveservice.output_format=csv

Jmeter 4.0 solution : (I believe it could be executed on older version but I did not tried)

  1. open command prompt and go to Jmeter -> bin folder //for example : C:\\apache-jmeter-4.0\\bin
  2. Issue this command ( remember it's a one single command ) -

jmeter -n -t C:\\apache-jmeter-4.0\\res\\nonGUI.jmx -l C:\\apache-jmeter-4.0\\res\\log\\logResult.log -j C:\\apache-jmeter-4.0\\res\\log\\logFile.log -e -o C:\\apache-jmeter-4.0\\res\\report

  1. Above command will give you

(a) Actual log // C:\\apache-jmeter-4.0\\res\\log\\logFile.log

(b) Result with pass/fail status C:\\apache-jmeter-4.0\\res\\log\\logResult.log

(c) HTML report C:\\apache-jmeter-4.0\\res\\report\\index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM