Due to the new ability of this plugin of handling junit reports as well as jmeter ones, JMeter-plugin has been renamed to Performance plugin IntroductionThis plugin allows you to capture report from JMeter. Hudson will generate graphic charts with the trend report of performance and robustness. Release 0.3.0 includes the feature of setting the final build status as good, unstable or failed, based on the reported jmeter error percentage. Usage with Freestyle project1. You can use ant and jmeter task for ant to launch tests on your web application <project default="all"> <!-- Define an environment variable pointing to JMETER folder or change this --> <property environment="env"/> <property name="jmeter-home" location="${env.JMETER_DIR}"/> <!-- 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.0.9.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"/> </jmeter> </target> <!-- This is not needed for the plugin, but it produces a nice html report which can be saved usin hudson'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> Hudson ConfigurationIn Hudson, configure the files or the repository containing the files to be parsed by JMeter plugin. If you have are using version 0.3.0, you can configure the error percentage thresholds which would make the project unstable or failed. Other ArticlesCompilingTo use the latest plugin release, you need to download, compile and install by hand. To do it, you need subversion, maven and java installed in your computer. $ svn checkout https://svn.dev.java.net/svn/hudson/trunk/hudson/plugins/jmeter jmeter (username is 'guest' and password 'guest' $ cd jmeter $ mvn package $ cp target/jmeter.hpi <path_to_hudson>/data/plugins Changelogv0.3.0
NOTE: There is an incompatibility with the previous version of the plugin, due to the way the JMeter result files are handled: - The Maven JMeter plugin handles the test result in this way now: - The last released version (0.2) of the Hudson JMeter plugin only handles one JMeter test: - But version 0.3.0 introduces the possibility to handle several JMeter tests : - To keep the current test results obtained with the 0.2 plugin one has to apply the following migration procedure : v0.2handling jmeter log format v 2.0
v0.1first release |

Comments (5)
Jun 30, 2009
Dominik Kapusta says:
Thanks for the plugin, it's great. I think however, that min and max times are s...Thanks for the plugin, it's great. I think however, that min and max times are swapped. Also, as can be seen on the page linked below, average time is sometimes greater than max time, which is improper, i think.
http://www.theserverlabs.com/blog/2009/04/23/performance-tests-with-jmeter-maven-and-hudson/
Jul 01, 2009
Josh Koenig says:
Indeed. In addition to the note above, it appears that the min/max may be on dif...Indeed. In addition to the note above, it appears that the min/max may be on different scales (I see graphs where both min and max are below the average), and the min/max appear to be the actual literal min/max rather than a 5th/95th percentile or the like.
It would be really amazing to get some configuration options for a threshold for how min/max are computed.
Dec 04, 2009
Venugopal Shenoy says:
Please make the plugin version 0.3 available in the downloads section.Please make the plugin version 0.3 available in the downloads section.
Dec 08, 2009
Jakub Gemrot says:
Hi! Thanks for cool plugin, I've got a bugreport... hudson.plugins.jmeter...Hi!
Thanks for cool plugin, I've got a bugreport...
hudson.plugins.jmeter.JMeterReport. assumes that samples are always inside tag <httpSample> but that is a wrong assumption, according to http://jakarta.apache.org/jmeter/usermanual/listeners.html it may be <sample> too. Quick fix to JMeterReport (SAX parsing) will fix that.
I stumble upon that measuring response time of my web service - Web Service (SOAP) sampler logs into <sample> tags.
Cheers!
Dec 09, 2009
Manuel Carrasco says:
@Venugopal Shenoy: I've uploaded version 0.3 to the download page. @Jakub Gemro...@Venugopal Shenoy: I've uploaded version 0.3 to the download page.
@Jakub Gemrot: Version 0.3 includes the fix for this issue.
Thanks for suggesting and reporting
Manuel Carrasco Moñino