user89749
user89749

Reputation: 301

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 JmeterTestCase.class can be found?

Upvotes: 0

Views: 619

Answers (3)

Prakash.AI
Prakash.AI

Reputation: 111

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

Upvotes: 0

Markymark
Markymark

Reputation: 2989

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.

Upvotes: 0

BlackGaff
BlackGaff

Reputation: 7707

Try this tutorial:

jmeter.apache.org/usermanual/junitsampler_tutorial.pdf

Upvotes: 3

Related Questions