JUnit test classes not showing up in JMeter

前端 未结 4 790
野的像风
野的像风 2021-01-18 06:18

I\'m trying to run JUnit test with JMeter 2.7. However, when selecting the test classes in the drop down of the JUnit sampler, they don\'t show up. As I found out, that\'s b

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 07:20

    You must put your junit classes in lib/junit folder as you did and dependencies in lib folder.

    You shouldn't use fatjar as sometimes these tools removed files from meta-inf or only keep one from all jars, spring pûts one in each of its jars .

    Add all your jars one by one in lib folder.

    Check jmeter logs to see if you have any exception .

    If it still fails, ask a question on jmeter user list and if you don't get any answer create a simple test case and open a bug.

提交回复
热议问题