4
votes

I have problem with JMeter not picking up my JUnit test. What I did:

  • got JMeter and extracted
  • created JUnit test through Selenium IDE and exported as JUnit4(WebDriver)
  • try that test runs when executed (in IntelliJ)
  • created JAR of the class file
  • placed JAR into jmeter.home/lib/junit
  • started jmeter
  • created new thread
  • added new sampler for JUnit request

However when I check "Classname" drop down my test is not listed there. Does anyone know why test is not recognised by JMeter?

2
I think stackoverflow.com/a/18350556/2586371 solves your problem.Bobur Meliev
@BobMeliev thanx for the try but after 2 years few things changed and I do not need this anymore...peter_budo
Anyway maybe it will be useful for others.Bobur Meliev

2 Answers

0
votes

check whether scripts exported using junit4. If yes, then select "search for junit4 annotations" check box. surely it will display.

-1
votes

After creating Junit jar file . Place the jar file in the
jmeter.home\lib not in jmeter.home/lib/junit. After that Restart Jmeter. Now add thread group to jmeter and Junit Request sampler.
Observe that the Classname apperas in the drop down list