O'Reilly logo

TestNg Beginner's Guide by Varun Menon

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 9. Logging and Reports

In the previous chapter we covered the uses of build tools which help our TestNG tests in a lot of different ways. In this chapter we will learn about writing extensions in TestNG for logging and generating custom reports from them. We will also learn about different report formats available and how to generate some nice open source reports.

In this chapter we'll cover the following topics:

  • Logging and reporting
  • Writing your own logger
  • Writing your own reporter
  • TestNG HTML and XML reports
  • Generating a JUnit HTML report
  • Generating a ReportNG report
  • Generating a Reporty-ng (former TestNG-xslt) report

Logging and reporting

Reporting is the most important part of any test execution, reason being it helps the user to understand ...

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