Jmeter Junit Issue
I am trying to execute jmeter tests in jnuit testcases. I am not able to find JmeterTestCase in jmeter lib.
In which jar JmeterTe开发者_运维技巧stCase.class can be found?
Try this tutorial:
jmeter.apache.org/usermanual/junitsampler_tutorial.pdf
You have to create the jar yourself. If you are using Eclipse, right click on the project > Export > Java > Jar > click Next > Finish. If you use another IDE you can use their export process or follow this Java creating .jar file .
That jar needs to be placed in the lib\junit directory.
For the rest follow the tutorial given by BlackGaff. It explains everything.
please clarify what do you mean by . "I am not able to find JmeterTestCase in jmeter lib."
I guess you want to run Jmeter test cases (jmx files) as Juint test cases
you can either implement JavaSamplerClient or to extend AbstractSamplerClient.
this question might be of good help for you,
How to write a JMeter test for Java Request
精彩评论