Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Create HTML Reports with Screenshots in Selenium Automation Framework

Automation Step by Step via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This tutorial from Automation Step by Step demonstrates how to implement HTML reporting with screenshots using Extent Reports in test automation frameworks. Learn the complete process through step-by-step instructions: add the Extent Reports dependency, create a utility class, modify the BaseTest class for report initialization, implement test case reporting, and enhance reports with screenshots for failed tests. Follow along with the 58-minute guide to generate professional HTML reports that capture test results and automatically include screenshots when tests fail, making debugging easier and improving the quality of your test documentation. The tutorial includes access to a GitHub repository with the complete implementation for reference.

Syllabus

00:00 Intro - How to implement Reporting using Extent Reports
01:01 Step 1 - Add Extent Reports Dependency and run mvn clean install
03:56 Step 2 - Create Extent Reports Utility class in utils ExtentReportManager.java
18:28 Step 3 - Modify your BaseTest.java Class to initialize and flush the report
23:34 Step 4 - Add Reporting to Your Test Cases log pass/fail results
28:55 Step 5 - Run test mvn test & check the reports folder for the generated ExtentReport.html
33:46 Adding Screenshots in Reports
33:51 Step 1 - Modify ExtentReportManager.java to add screenshot support
42:30 Step 2 - Modify TearDown method of BaseTest class
48:50 Step 3 - Check if screenshots are added in Reports if the test fails
52:42 Step 4 - Can add multiple tests and check the Report
57:34 Ending

Taught by

Automation Step by Step

Reviews

Start your review of Create HTML Reports with Screenshots in Selenium Automation Framework

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.