Search code examples
selenium-rcjunit3

I want to execute few selected test cases from my class of multiple test cases using Junit3 with ease


As my 1-2 test cases are failing from bunch of test cases and also finding difficult to execute whole test suite again for these two, is there any method without adding comment to the others or copying these two methods in different suite.

Thanks to all in advance


Solution

  • For the tests you don't want to run, add the @Ignore annotation. For example:

    @Ignore
    @Test
    public void testLala() {
      ...
    }