O'Reilly logo

Next Generation Java™ Testing: TestNG and Advanced Concepts by Hani Suleiman, Cédric Beust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required