Kumar
Kumar

Reputation: 433

Generate JMeter Summary or aggregate report using JMeter command line execution

I am using below JMeter commandline to execute JMeter tests and generate csv file

jmeter -n -t "E:\New folder\apache-jmeter-5.1.1\JMeterProject\Test.jmx" -l "E:\New folder\apache-jmeter-5.1.1\JMeterResult\Result.csv"

Is there any way to generate Aggregate or Summary report by passing any options to above command ?

Upvotes: 0

Views: 967

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

Nope, you will need to run another command and it assumes having JMeterPluginsCMD Command Line Tool plugin installed

  1. Run your test and create .jtl results file

    jmeter -n -t "E:\New folder\apache-jmeter-5.1.1\JMeterProject\Test.jmx" -l "E:\New folder\apache-jmeter-5.1.1\JMeterResult\Result.csv"
    
  2. Run JMeterPluginsCMD to create CSV version of the Summary Report out of the .jtl results file:

    JMeterPluginsCMD.bat --generate-csv "E:\New folder\apache-jmeter-5.1.1\JMeterResult\Summary.csv" --input-jtl "E:\New folder\apache-jmeter-5.1.1\JMeterResult\Result.csv" --plugin-type AggregateReport 
    

More information: How to Use the JMeterPluginsCMD Command Line

Upvotes: 0

Related Questions