Vairamuthu
Vairamuthu

Reputation: 568

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.

Upvotes: 6

Views: 35209

Answers (4)

Mike ASP
Mike ASP

Reputation: 2333

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

Upvotes: 2

Dmitri T
Dmitri T

Reputation: 168002

  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:

Upvotes: 9

Harish Ekambaram
Harish Ekambaram

Reputation: 338

You could resolve it easier by setting the property in jmeter.properties file as below.

jmeter.save.saveservice.output_format=csv

Upvotes: 1

Related Questions