JUnit class is not displayed in JMeter -
i have created java project 1 class containing 2 simple tests, exported jar , added jar in jmeter junit folder, after restarting jmeter don't see class in jmeter after selecting annotation 4 option.
this class:
package print; import org.junit.test; public class printclass { @test public void test() { system.out.println("hello world..!"); } }
consider following checklist:
- your junit test class should have either empty constructor or constructor taking single string argument. other options not supported
- you should place .jar file(s) under "lib/junit" folder of jmeter installation
- if there dependencies need put them somewhere in jmeter classpath well
- jmeter restart required pick .jars up
in case of problems first of check jmeter.log file (normally lives under "bin" folder of jmeter installation , contains enough troubleshooting information)
see how use junit jmeter article more details.
Comments
Post a Comment