This documentation relates to QuickBuild 6.1.x
Select here if you are using a different version

Publish JMeter Report

Version 2 by Steve Luo
on Oct 13, 2016 02:29.


compared with
Current by Steve Luo
on Oct 13, 2016 03:40.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

 To publish [JMeter|http://jmeter.apache.org] report, you only need two steps:
 # Generate JMeter *XML* report from [Ant|http://ant.apache.org] or [Maven|http://maven.apache.org] or any other build tool.
 # Add JMeter publish step by choosing _Publish -> JMeter Report_ from step menu.
  
  
 h2. Generate JMeter Report
  
 QuickBuild will NOT generate [JMeter|http://jmeter.apache.org] report automatically, so first make sure the [JMeter|http://jmeter.apache.org] report is produced by [ANT|http://ant.apache.org] or by any other build tool. The following example shows how to generate JMeter XML report with Ant JMeter task:
 {code:xml|title=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>
  
 {code}
  
 h2. 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|Publish Build Reports] for how to use report set.
  
 If the JMeter is published successfully, the build overview page will display the summary for your JMeter requests,
  
 !jmeter-overview.png!
  
  
 h2. 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.
  
  Like all other reports, JMeter data can be aggregated to current configuration and parent configuration, please refer to [Report Aggregation] for how to add aggregation based on your strategy.