testNG Notes Instructions

1.TestNG common comment

@BeforeSuite tag method: run before a test suite (suite) begin

@BeforeTest run before a test (test) start

@BeforeClass run before a test class (class) start

Marked @DataProvider data providers to provide data before @BeforeMethod

@BeforeMethod run before a test method (method)

@Test marked test methods

@AfterMethod run after a test method executes

@AfterClass in a test class => all test methods run after execution

After running a test performed under the @AfterTest => All test class => Test Method

@AfterSuite tag method: After running a test suite (suite) all test method execution

2. With the above comments, the output order of priority appreciated!

3. Follow-supplement ....

 

Guess you like

Origin www.cnblogs.com/xiaozhaoboke/p/11025005.html