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:

  1. your junit test class should have either empty constructor or constructor taking single string argument. other options not supported
  2. you should place .jar file(s) under "lib/junit" folder of jmeter installation
  3. if there dependencies need put them somewhere in jmeter classpath well
  4. 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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -