Selenium Webdriver Appium Complete TutorialSelenium Webdriver Appium Complete Tutorial
Automation Testing
  • Tools
    • Selenium
      • Selenium Java Tutorial
      • Selenium C# Tutorial
    • Appium
      • Appium Java Tutorial
      • Appium C#Tutorial
    • Katalon
  • Trainings
  • TestNG
  • Reports
    • Extent Reports
      • Extent Reports – Java
      • Extent Reports – Java -Version3
      • Extent Reports – C#
    • Vigo Reports
    • AT Excel Report
  • Excel
    • Apache POI – Java
    • Excel With C#
  • Interview Questions
    • Selenium Interview Questions
    • Java Interview Questions
    • C# Interview Questions
  • Demo Site
  • Practice Site
  • More…
    • AutoIt
    • Sikuli
    • Robot Class
    • File Upload
    • ScreenShot
      • AShot
      • ShutterBug
  • About
February 22, 2017

Extent Reports Introduction – Java – Version3

In software test automation after completion of the test suite execution we need to have a report for the execution status and it is the only way of evidence for the pass and fail status of the tests. And most of the clients bother about the detailed report of the execution status. Most of the licensed automation testing tools will have in built rich report option to show the execution status. But coming to open source automation tools lacking in this option. Same way, Selenium also does not have the automation report generation option. But to execute the test suite, selenium is depending on unit testing frameworks like TestNG and Junit.

After test suite execution using TestNG or Junit, by default they will give the HTML reports, but the information provided by these reports are not so good. To avoid this, we are using XSLT reports, these are much better than normal TestNG and Junit reports.These will give a pie chart to represent the PASS,FAIL and SKIP test cases. Apart from this PIE Chart it will not give anymore information in the generated HTML report. If we want any other information we need to write separate code. And configuring XSLT reports also bit tedious process. For this, we need to install and configure the ant in the machine and follow certain procedure to generate these reports.

TestNG Default Report:

Default TestNG Report

XSLT Report:

XSLT Report

To overcome these type of issues, we can use Extent Reports. These are very good and rich HTML reports. By using these reports we can provide lot information to the reports. These will also give the status in the form of PIE Chart. We have two variants of extent reports one is Community version and the other is paid version. But most of the things can be achieved using community version.

Below are the advantages provided by the Extent Reports:

  1. Status will be shown in the form of PIE chart.
  2. Can replace the existing report with the new report or append the new status to the existing report.
  3. We can change display order of the tests(i.e. oldest test at the top, newest at the end or newest test at the top, oldest at the end)
  4. Can generate ONLINE or OFFLINE reports.
  5. Can give the our own name to the test method (i.e can change the test method name in the report).
  6. Can generate stepwise log information in the report.
  7. Can segregate the tests using Test Categories.
  8. Can give test author name to display in the report.
  9. Can add a test node as a child of another test.
  10. Can insert any custom HTML in the logs by using an HTML tag.
  11. Can show the screenshots in the report wherever we need.
  12. Can add recording of your test runs in the report.
  13. Can add our own information in the report (i.e. version of selenium used, Environment information where the test suite executed).
  14. Can give our own name to the HTML report.
  15. You can give the System information in the report (i.e. HostName and OS used to execute the test suite.)

The above are the advantages provided by the extent reports. We can discuss all these things in the coming blogs.

Extent Report:

Extent Report

You can find the complete information in the below link:

http://extentreports.com/docs/versions/3/java/

You can download the Extent Reports Jars in this link:

http://extentreports.com/community/

Last but not least, a big thanks to Anshoo Arora for giving this type of reports.

Please watch the YouTube video of this blog for better understanding.

Share this post: on Twitter on Facebook

Selenium ElementNotVisibleException Generating Extent Reports – Java – Version3

Related Posts

GENERATE EXTENT REPORT WITH MULTIPLE CLASSES JAVA

Extent Reports-Java-Version3

Extent Report With Multiple Classes

Capture FullPage Screenshot in Extent Reports – Java

Extent Reports-Java-Version3

Capture FullPage Screenshot in Extent Reports – Java

CAPTURE SCREENSHOTS IN EXTENT REPORTS JAVA

Extent Reports-Java-Version3

Capture Screenshot in Extent Reports – Java – Version3

EXTENT REPORTS LOG GENERATION JAVA

Extent Reports-Java-Version3

Extent Reports Log Generation – Java – Version3

GENERATING EXTENT REPORTS JAVA-V3

Extent Reports-Java-Version3

Generating Extent Reports – Java – Version3

Newsletter

Recent Posts

  • TAKING WEB ELEMENT SCREENSHOT IN SELENIUMHow to Capture WebElement Screenshot in Selenium Webdriver using selenium 4
    December 15, 2019
  • How To SWAP Two Numbers in Java Without using Temp VariableHow to SWAP Two Numbers in Java Without Temp variable or Without Third variable
    December 8, 2019
  • How to Swap Two Numbers in Java with Temp VariableHow to SWAP Two Numbers in Java using Temp Variable
    December 1, 2019
  • How to Read Properties file in JavaHow to Read Data From Properties File in Java
    November 27, 2019
  • Compare two arrays in java with out inbuilt functionsHow to Compare Two Arrays in Java without built-in functions
    November 16, 2019
© Selenium Webdriver Appium Complete Tutorial 2025