JUnit test classes not showing up in JMeter

前端 未结 4 849
野的像风
野的像风 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 06:57

    Did you check the option that JUnit sampler has to search for v4 tests?

    JMeter option to search for JUnit 4 annotations

    I've tried and this works for a simple project I've created with JUnit 4, it filters only tests with the @Test annotations even those classes doesn't extend TestCase class.

提交回复
热议问题