What is the sequence of execution of the annotations in TestNg ?

The sequence is as follow :
@BeforeSuite
@BeforeTest
@BeforeClass
@BeforeMethod
@Test
@AfterMethod
@AfterClass
@Aftertest
@AfterSuite

Leave a Reply