How to do Custom Extent Report Version 4.0 in TestNG Framework ?


  We all know Extent reports are the advanced Selenium Reporting Tool. We can create beautiful, interactive and detailed reports using Extent framework. We can add any information (such as events, screenshots, tags, devices, authors or any other relevant information) which is important for us to create an informative and stunning report.

 Let’s move forward and see step by step guide on how to setup extent reports version 4 in Selenium WebDriver Scripts.

Steps To Generate Extent Reports Selenium:

    • Step 1: Firstly, create a TestNG project in eclipse

    • Step 2: Now Download Extent reports Version 4 JAR file or to get Extent Reports Maven dependency 4.0.9 – Download Extent Reports

    • Step 3: Add the downloaded library files (Jar file) to your project or add Extent Reports Maven Dependency

 Migrating from Version 3


  If you are migrating from version 3, please note that the core usage remains the same. See the list of breaking changes

 

API Chart Location

Affected type: ChartLocation

ChartLocation is no longer available, and can be removed from your setup code 

Suggested fix: removal of ChartLocation


Extent Smail Reporter Email Template

Affected type: EmailTemplate

EmailTemplate has moved from package

com.aventstack.extentreports.reporter to 

com.aventstack.extentreports.reporter.configuration

Suggested fix: Re-import package imports to fix

  

 Add below code to your pom.xml file

   

 

Once we run the program, you should the report like below : -
Below is the output image :-

 

 

 

Below is the Extent Report HTML looks like : -

 

 

 

 

 

 

Popular posts from this blog

Let's kick start your Selenium Test Automation Framework To Generate Test Reports (TestNG,Extent Report)

How to install Maven on Eclipse IDE ?

Let's Start Automation in Kotlin..!

How Robotic Process Automation Transforms the Software Testing Industry.

What is TestNG ?

How To Setup a Selenium WebDriver Maven Project in Eclipse ?