Publish JMeter Report

To publish JMeter report, you only need two steps:

  1. Generate JMeter XML report from Ant or Maven or any other build tool.
  2. Add JMeter publish step by choosing Publish -> JMeter Report from step menu.

Generate JMeter Report

QuickBuild will NOT generate JMeter report automatically, so first make sure the JMeter report is produced by ANT or by any other build tool. The following example shows how to generate JMeter XML report with [Ant JMeter task]:

Generate JMeter Report
<project default="all">
  <property name="jmeter-home" value="/your/jmeter/home" />
  <!-- ant-jmeter.jar comes with jmeter, be sure this is the release you have -->
  <path id="ant.jmeter.classpath">
    <pathelement
       location="${jmeter-home}/extras/ant-jmeter-1.1.1.jar" />
  </path>
  <taskdef
    name="jmeter"
    classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"
    classpathref="ant.jmeter.classpath" />
  <target name="clean">
    <delete dir="results"/>
    <delete file="jmeter.log"/>
    <mkdir dir="results/jtl"/>
    <mkdir dir="results/html"/>
  </target>
  <target name="test" depends="clean">
    <jmeter
       jmeterhome="${jmeter-home}"
       resultlogdir="results/jtl">
      <testplans dir="test/jmeter" includes="*.jmx"/>
      <property name="jmeter.save.saveservice.output_format" value="xml"/>
    </jmeter>
  </target>
  <!-- This is not needed for the plugin, but it produces a nice html report
       which can be saved usin jenkins's archive artifact feature -->
  <target name="report" depends="test">
    <xslt
       basedir="results/jtl"
       destdir="results/html"
       includes="*.jtl"
       style="${jmeter-home}/extras/jmeter-results-detail-report_21.xsl"/>
  </target>
  <target name="all" depends="test, report"/>
</project>

Publish JMeter Report

Add Publish JMeter Report step to your build workflow. You can category your JMeter report by adding multiple steps with different report set name(category name). Reference this page for how to use report set.

If the JMeter is published successfully, the build overview page will display the summary for your JMeter requests,

Unable to render embedded object: File (jmeter-overview.png) not found.

Aggregate JMeter Report

Like all other reports, JMeter data can be aggregated to current configuration and parent configuration, please refer to [this page] for how to add aggregation based on your strategy.

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.