0

I am writing TestNG automation code for my project . In this I should Login in an account before the test starts (This applies for all test classes) . Is this possible that I create a class "BaseClass" that has only @BeforeTest annotated method . Does my test classes identifies the base class .Or can I follow any other methods . The reason I am going for a base class is that I dont like to repeat the @BeforeTest method in each test classes

  • 1
    Possible duplicate of [TestNg's @BeforeTest on base class only happening once per fixture](https://stackoverflow.com/questions/4310964/testngs-beforetest-on-base-class-only-happening-once-per-fixture) – Lino Jan 11 '19 at 09:18
  • 1
    Looking at the answer for question https://stackoverflow.com/questions/30587454/difference-between-beforeclass-and-beforetest-in-testng might help you. – arunkvelu Jan 11 '19 at 13:40

0 Answers0