Skip to main content
added 7 characters in body
Source Link
Dmitri T
  • 13.6k
  • 1
  • 16
  • 21

Add the following lines to the end of your code:

JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.classname", "org.apache.jmeter.report.dashboard.HtmlTemplateExporter");
JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.property.output_dir","report-output/dashboard");

ReportGenerator generator = new ReportGenerator("index"/Path/results.html"jtl", null);
generator.generate();

And upon the next execution you will see the HTML Reporting Dashboard under report-output/dashboard folder

More information:

Add the following lines to the end of your code:

JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.classname", "org.apache.jmeter.report.dashboard.HtmlTemplateExporter");
JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.property.output_dir","report-output/dashboard");

ReportGenerator generator = new ReportGenerator("index.html", null);
generator.generate();

And upon the next execution you will see the HTML Reporting Dashboard under report-output/dashboard folder

More information:

Add the following lines to the end of your code:

JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.classname", "org.apache.jmeter.report.dashboard.HtmlTemplateExporter");
JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.property.output_dir","report-output/dashboard");

ReportGenerator generator = new ReportGenerator("/Path/results.jtl", null);
generator.generate();

And upon the next execution you will see the HTML Reporting Dashboard under report-output/dashboard folder

More information:

Source Link
Dmitri T
  • 13.6k
  • 1
  • 16
  • 21

Add the following lines to the end of your code:

JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.classname", "org.apache.jmeter.report.dashboard.HtmlTemplateExporter");
JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.property.output_dir","report-output/dashboard");

ReportGenerator generator = new ReportGenerator("index.html", null);
generator.generate();

And upon the next execution you will see the HTML Reporting Dashboard under report-output/dashboard folder

More information: