YUNOVA · Selenium & Test Automation · Module 9: Automation frameworks
TestNG annotations and test suites
TestNG annotations and test suites
Key points
- Annotations like @Test, @BeforeMethod and @AfterClass control when code runs.
- testng.xml groups classes and methods into suites.
- Groups, priorities and dependsOnMethods control what runs and in which order.