This is a Maven 2 plugin that allows you to run JMeter tests as part of the build. I am using this with \[http://jchav.blogspot.com/ JChav\] and \[http://maven.apache.org/continuum/ Continuum\] to automate the running of a suite of JMeter load tests, and publish the results to a web page. Sorry this is not more polished. It could use some TLC to make it more user-friendly to actually plug it into a project. I just thought I'd stick the code out there as quickly as possible and see if anyone is interested in it before I went any further with it. |
To build and use the plugin:
Drop in the attached \[^jmeter-2.2.jar JMeter jar\] and \[^jmeter-2.2.pom POM\]. You do not need to have JMeter separately installed. |
Download the attached \[^maven-jmeter-plugin-src.tar.gz Maven JMeter Plugin source tarball\]. Untar it. |
<dependency> <groupId>org.apache.jmeter</groupId> <artifactId>maven-jmeter-plugin</artifactId> <version>1.0-SNAPSHOT</version> <type>plugin</type> </dependency> |
<build> <plugins> <plugin> <groupId>org.apache.jmeter</groupId> <artifactId>maven-jmeter-plugin</artifactId> <configuration> <includes> <include>myTest1.jmx</include> <include>myTest2.jmx</include> </includes> </configuration> </plugin> </plugins> </build> |
<build> <plugins> <plugin> <groupId>org.apache.jmeter</groupId> <artifactId>maven-jmeter-plugin</artifactId> <configuration> <includes> <include>myTest1.jmx</include> <include>myTest2.jmx</include> </includes> <reportDir>target/jmeter-reports</reportDir> </configuration> </plugin> </plugins> </build> |
– Kartikeya Rao