Comments on: Maven JMeter plugin and report generation (the last steps to get it working) https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/ Friends of Oracle and Java Sat, 25 Apr 2015 11:36:47 +0000 hourly 1 http://wordpress.org/?v=4.2 By: Ardesco https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4856 Wed, 08 Feb 2012 23:11:43 +0000 http://technology.amis.nl/blog/?p=2364#comment-4856 A lot of the problems mentioned in the comments have been fixed in the latest version and this plugin is now under active development again.  It is now available from the central maven repository so you no longer need to specify a repository in your POM to use it, all that is required now is:
 
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
</plugin>
Note that the GroupID and ArtifactID have changed.
Project website is http://jmeter.lazerycode.com

]]>
By: Marco https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4855 Thu, 04 Oct 2007 13:13:42 +0000 http://technology.amis.nl/blog/?p=2364#comment-4855 We are having a problem with functions like ${__threadNum}, they are not being replaced when JMeter is executed by the Maven plugin. Has anybody experienced the same? Any ideas what might be causing this? No problems when running the script with the JMeter GUI or command-line. I did find the following messages in the logging:

2007/10/03 15:55:49 DEBUG – jmeter.testelement.property.AbstractProperty: Not running version, return raw function string
2007/10/03 15:55:49 DEBUG – jmeter.engine.util.ValueReplacer: Replacement result: test${__threadNum}

]]>
By: Lean https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4854 Mon, 01 Oct 2007 14:00:55 +0000 http://technology.amis.nl/blog/?p=2364#comment-4854 I have posted a blog entry describing the entire process to make JUnitSampler work with Maven: http://my.opera.com/mateamargo/blog/2007/09/27/running-junitsampler-with-maven

]]>
By: Lean https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4853 Thu, 30 Aug 2007 14:50:03 +0000 http://technology.amis.nl/blog/?p=2364#comment-4853 Well, I finally found out the way to do this. Is not nice but it works.

I had to modify the Maven JMeter Plugin to add all the needed classes to the ClassLoader that JMeter uses.
This is achieved reading a text file with all the dependencies of the project (generated previously with the maven-dependency-plugin).

I’m waiting that Tim McCune confirm me that he accepts my modification to update his plugin.

]]>
By: Robbrecht van Amerongen https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4852 Tue, 14 Aug 2007 18:14:17 +0000 http://technology.amis.nl/blog/?p=2364#comment-4852 I have no experience with JunitSampler option within Jmeter. This features is introduced in version 2.1.2.
I think you have to add the test.jar as an dependency within your pom. I have not tried this yet.
The HTTPSampler does not give these problems.

]]>
By: Lean https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4851 Mon, 13 Aug 2007 14:10:06 +0000 http://technology.amis.nl/blog/?p=2364#comment-4851 Hi Bobbrecht, I have deployed jmeter-2.2.jar in a internal repository. The log says that it couldn’t find my test classes.
What do you mean with JMeter helper classes?
I have all the dependencies that JMeter needs

I have this line in my target/jmeter/jmeter.log file:

2007/08/13 11:06:38 WARN – jmeter.protocol.java.sampler.JUnitSampler: ClassNotFoundException:: com.foo.TestClass

Can you tell me which version of Java are you using?
Maybe there is a problem with classpath.

Thanks

]]>
By: Robbrecht van Amerongen https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4850 Mon, 13 Aug 2007 07:31:15 +0000 http://technology.amis.nl/blog/?p=2364#comment-4850 Lean,
The whole Jmeter process is run in maven. It seems that the ClassNotFoundException has to do with something in your JMeter Test.
You should add additional helper class files from JMeter as an dependency in your pom.xml.

I hope this will solve your problem.

]]>
By: Robbrecht van Amerongen https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4849 Mon, 13 Aug 2007 07:26:16 +0000 http://technology.amis.nl/blog/?p=2364#comment-4849 You have to add the repository where you can download the jmeter.jar to the maven-jmeter-plugin pom.xml. e.g.:

false

geotools
maven.geotools.org
http://maven.geotools.org/repository/

]]>
By: Lean https://technology.amis.nl/2007/08/08/getting-the-maven-jmeter-plugin-working-and-generating-a-report-the-last-steps/#comment-4848 Fri, 10 Aug 2007 20:50:16 +0000 http://technology.amis.nl/blog/?p=2364#comment-4848 Haven’t you got a ClassNotFoundException in the jmeter/jmeter.log file after running it?
If you did, how did you solve it?

Thanks.

]]>