Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

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 3 Next »


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

 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 file to parse by JMeter plugin:
You are done.

  • No labels