This chapter focuses on designing and building data-driven test classes using the TestNG technologies, integrating a data provider into data-driven tests, and using setup/teardown, exception handling, and various other TestNG features. The following topics are covered:
- Introduction
- Annotating test class methods using TestNG
- TestNG setup/teardown methods
- Naming conventions for test methods
- Using the TestNG DataProvider
- Calling page object methods in test classes
- Exception handling in test classes
- Designing base setup classes
- TestNG suite file structure
- Suite parameters