{hudson-plugin-info:pluginId=jmeter}

This plugin allows you to capture report from JMeter. Hudson will generate graphic charts with the trend report of performance and robustness, and will set the final status of the build as good, unstable or failed, based on the reported jmeter error percentage.

Usage with Freestyle project

1. You can use ant and jmeter task for ant to launch tests on your web application
2. Your ant file may be similar to something like that:
 
 

<project>
...
    	<property name="jmeter" location="${env.JMETER_DIR}" />
...
    	<taskdef
		name="jmeter"
		classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"
		classpathref="ant.classpath"   />

	<target name="jmeter.init">
		<echo message="jmeter init..." />
		<mkdir  dir="${basedir}/loadtests/results/"/>
		<delete includeemptydirs="true">
			<fileset dir="${basedir}/loadtests/results/" includes="**/*" />
		</delete>
	</target>

	<target name="jmeter.tests" depends="jmeter.init" description="launch jmeter load tests">
		<echo message="Starting jmeter tests..." />
		<jmeter
			jmeterhome="${jmeter}"
			resultlog="${basedir}/loadtests/results/LoadTestResults.jtl">
			<testplans dir="${basedir}/loadtests" includes="*.jmx"/>
		</jmeter>
	</target>
...
</project>

Output

In Hudson, configure the file to be parsed by JMeter plugin and the error percentage thresholds which would make the project unstable or failed.

Other Articles

 v0.3

Added threshold parameters in order to report the build process as unstable or failed based on the error percentage.

Fixed some bugs related with the parsing of previous-builds not configured for jmeter tasks.

 v0.2

handling jmeter log format v 2.0

v0.1

first release