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

YouTube

Selenium Send Email with Reports Attached

Automation Step by Step via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This 48-minute tutorial demonstrates how to implement email functionality with report attachments in Selenium automation frameworks. Learn the complete process from configuring Gmail accounts with App Passwords to writing Java code that sends test reports via email. Follow a step-by-step approach starting with adding Java Mail dependencies to your Maven project, creating App Passwords for secure Gmail access, developing email sending functionality with attachments, and integrating this into your test framework's AfterSuite methods. The instructor provides a comprehensive demonstration with practical code examples that can be referenced in the GitHub repository. Perfect for automation engineers looking to enhance their test frameworks with automated reporting capabilities.

Syllabus

00:00 *TOPICS*
01:04 STEP 1 - Add java mail Dependency to pom.xml Update maven project mvn clean install
03:21 STEP 2 - Use a test email account and create App Password
06:45 STEP 3 - Create a new class EmailSender.java with main method to try the email sending code
25:55 STEP 4 - Update the code to add attachment to the email and try it
36:24 STEP 5 - Now create a new class EmailUtils.java in utils package and add the email code
41:34 STEP 6 - Update BaseTest.java to call Sending Email in @AfterSuite method

Taught by

Automation Step by Step

Reviews

Start your review of Selenium Send Email with Reports Attached

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.