Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

This plugin allows you to capture report from JMeter. Hudson will generate 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:
 
 

Code Block

<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 parse be parsed by JMeter plugin : Image Removed
You are done.and the error percentage thresholds which would make the project unstable or failed.

Image Added

 v0.3

Added threshold parameters in order to report the build process as unstable or failed based in 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

...