I wrote the code for performance test as JUnit4 testcase.
-> src/test/org/jmeter/xhtml/PerfTest.java
And I wrote src/test/jmeter/perfomanceTest.jmx like below.
<stringProp
name="junitSampler.classname">org.mixer2.xhtml.PerfTest</stringProp>
<stringProp name="junitsampler.method">loadTemplateTest</stringProp>
I ran mvn jmeter:jmete, but I got error.
ERROR - jmeter.JMeter: Error in NonGUIDriver
java.lang.RuntimeException: Could not find the TestPlan class!
I understand that my testcase class is not on classpath of
jmeter-maven-plugin running.
What is the best way to add my junit4 testcase code to classpath of jmeter ?
--
nabedge
Tokyo, Japan
http://twitter.com/nabedge
Hmm... I understand what you saying.
I write Junit4 testcase and run it with mvn jmeter:jmeter,
next, I re-write testcase and run jmeter:jmeter... again and again....
In this process, I have to "mvn package" my real code and testcase
classes to jar file and "mvn install".
But I'm looking for more convenient methodology.
For example, We can use maven classpath reference with maven-antrun-plugin.
http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html
Does anybody have idea to do something similer ?
--
http://twitter.com/nabedge
2012/3/19 Arne Franken <arne.f...@googlemail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "Maven JMeter Plugin Users" group.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/maven-jmeter-plugin-users/-/npX3xaMua4UJ.
> To post to this group, send an email to
> maven-jmeter...@googlegroups.com.
> To unsubscribe from this group, send email to
> maven-jmeter-plugi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/maven-jmeter-plugin-users?hl=en-GB.
If you want to be able to add to the classpath you would need to add a
feature request to https://github.com/Ronnie76er/jmeter-maven-plugin/issues.
You will never be able to overwrite the classpath because we build it up
when initializing the plugin to make sure that JMeter has access to all of
its libraries, overwriting it could break quite a few things.
2012/3/19 Mark Collin <mark....@lazeryattack.com>:
--
わたなべ
http://twitter.com/nabedge
I write Junit4 testcase and run it with mvn jmeter:jmeter,
next, I re-write testcase and run jmeter:jmeter... again and again....
In this process, I have to "mvn package" my real code and testcase
classes to jar file and "mvn install".
> To unsubscribe from this group, send email to