Hi all, in this article, I will describe how to integrate Extent Reports Version 3 reporting tool with TestNG Listener. Before I explained how to integrate extent reports version 2 and in this article, we will learn how to generate a test report with extent report version 3. Let’s start.

First, we need to add extent report maven dependency in out pom.xml as shown below.

Second, we need to add ExtentManager class to our project. In this class, we create an ExtentReports instance, select the extent report file location based on a platform, and create the report path if it does not exist.

Then, we need to modify our TestNG listener class as shown below.

After that, you can run your tests and see the test results in TestReport folder as shown below.

Here is the sample project link: https://github.com/swtestacademy/extent-reports-version-3-example 

Thanks.
Onur Baskirt