开发者

JMeter load testing with JUnit from Selenium IDE

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?


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜