YUNOVA · Selenium & Test Automation · Module 9: Automation frameworks

TestNG annotations and test suites

Notes for offline study · 30 November 2026

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.

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.