Chapter 6. Extending TestNG

Now that we have discussed and explored many of the TestNG features, this chapter will focus on taking the next step and adding custom handling for various aspects of TestNG.

We recognize that there is no one-size-fits-all solution, and many aspects of TestNG are potentially interesting in terms of notifications, reports, and test behavior. One of the goals of TestNG is to enable large teams to define a common testing strategy and infrastructure. Since no two teams will have the exact same requirements or needs, it’s vital that TestNG allows for as much customization as possible. This chapter will focus on some of the more common needs and how to best interact with the API to satisfy these needs.

The TestNG API

This ...

Get Next Generation Java™ Testing: TestNG and Advanced Concepts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.