Extent Reports is quite a popular tool among Automation Testers. As we know that Test Reporting is a fundamental need of any automation framework and a must implement activity in Quality Assurance. Selenium although provides in-built reports with the help of Testng Or Junit and it contains quite the required details about the test cases BUT, the challenge is that they are not very customizable and presentable to present in-front of the management.

Hence, it comes Extent Reports to rescue. It is highly customizable Html Reporting and have several benefits over Selenium in-built reports and this what we gonna learn in this tutorial to “How to Generate Reporting in Selenium Webdriver using Extent Reports?”


Check out: JAVA 13 TUTORIAL with examples (Latest 2020)


In this tutorial, we are going to cover below topics:


Let’s begin:

1. Advantages of using Extent Reports

Key Points:

  • Fully customizable HTML report with pie chart representation.
  • Displays time taken by the test suite execution.
  • Capability of adding screenshot with every step.
  • Can be integrated with other Unit Testing Frameworks like JUnit & TestNG
  • Test Suite level displays complete details about Tests and it’s steps.
  • Can display Test Environment details on the Report.
  • Shows percentage coverage in the report.
  • Test Status (Pass/Fail) can be seen in the Pie Chart format.

2. How to Setup Extent Reports in a Project

In order to start the implementation of Extent Reports, we need to set up the environment first. For this reason, this tutorial will explain and help to set up the prerequisite and required dependencies in Eclipse.

Maven based Project:

If you are using Maven as the build tool for you project, use below mentioned dependency and add it into the POM file:


If you are using standalone project then download the extent report jar from this location and add it into your project’s class-path.

3. How to use and implement in Selenium Framework

Extent Reports implementation is very easy. You just need to take care of 5 following operations and that’s it and you are good to go.

  1. startTest
  2. log
  3. endTest
  4. flush
  5. close

Let’s see the syntax of each of the above operation:

1. startTest

Well, Let’s see the sample complete implementation of Extent Reports:


Once you run the above sample example, and go into the directory in which you’ve saved the report. You’ll find a file gets created there. In my case, it’s in 

/Users/d33p4k/javapractice/ExtentReports (it will be different for you)

Now, once you open the report file present in that folder, it should be like the following ones:


Detail Report



Summary Report



That’s it. It’s so easy to implement Html Based customized reporting in Selenium Webdriver with the help of Extent Reports. 

Happy Learning!!!

4. Resources

Extent Report Implementation – Software Testing Help

Extent Reports Implementation in Selenium Webdriver...!!! Click To Tweet

Checkout other useful tutorials, take a look:

Rest Assured Tutorial

Apache HttpClient Tutorial