Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Plugin Information

No information for the plugin 'jmeter' is available. It may have been removed from distribution.

This plugin allows you to capture report from JMeter. Hudson will generate graphic charts with the trend report of performance and robustness.

Release 0.3 includes the feature of setting the final build status 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>

Hudson Configuration

In Hudson, configure the file to be parsed by JMeter plugin.

If you have are using version 0.3, you can configure the error percentage thresholds which would make the project unstable or failed.

Compiling

To 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

Changelog

 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

 

 

  • No labels