Login

Login
  • Register
  • VectorDesign blog

    Testing Automation and general Tech Geek stuff

    Use common @before and @after Class

    Posted in Selenium on 8 June 2015 by vectordesign

    create a public abstract class TestSetUps and include your annotations

    @Rule

    @Before

    @After

     

    When you create a new test class extend it to the TestSetUps Class

     

    You can over ride either using the @Override annotation

     

     

    @Override
        @After
    public void tearDown() throws Exception {
    
    }

    Leave a Reply