0 votes
in TestNG by

What are the types of annotations used in TestNG (In the sequence of execution/hierarchy)?

1 Answer

0 votes
by

There are nine types of annotations used in TestNG. In order of their execution sequence, they are as follows:

@BeforeSuite

@BeforeTest

@BeforeClass

@BeforeMethod

@Test

@AfterMethod

@AfterClass

@AfterTest

@AfterSuite

Related questions

+1 vote
asked Apr 19, 2021 in TestNG by rajeshsharma
+1 vote
asked Apr 19, 2021 in TestNG by rajeshsharma
...