Skip to content

Automation Testing | Web | Java | OOPS | Selenium WebDriver | TestNG | Maven | ExtentReport | Allure Reports | Java mail API | Design Patterns (Page Object Model, Singleton) | Jenkins | Data-Driven Testing using JSON file

rajatt95/MasterSeleniumFramework

Repository files navigation

MasterSeleniumFramework

With further updates - This project is designed and developed with the help of -

  1. Udemy course (OmPrakash Chavan - Selenium Java Test Framework & Best Practices - Masterclass) - Learnings from Course (UDEMY - OC - Selenium).pdf
  2. YouTube playlist (Testing Mini Bytes - Selenium Automation Framework with Real-time dashboard)

It has a concept of Atomic tests (Achieved by Selenium WebDriver API and RestAssured API)

Atomic Tests:

image

image image

Updations done:

ExtentReports V5

  1. User can apply the Filters -
  • Author - Rajat, Nishant, Gautam, Pankaj
  • Browser - Chrome, Edge, Safari, Firefox
  • TestType - Smoke, Sanity, Regression, BVT
  1. Screenshots are attached in the ExtentReport as Base64 format. image image

Allure Reports image

User has options for customization image

Email to User(s) using Java mail API image

Others implementations:

  1. Retry failed test cases
  2. Custom Enums, Exceptions, Annotations
  3. Serialization and Deserialization using Jackson-Databind dependency
  4. Data Driven testing using JSON file

  1. Icons addition in ExtentReport a. Browser icon with every test case b. Test status Test Description -> Last -> Pass (Happy), Fail (Sad) c. WIN + Browser d. Navigating to Right e. Details (Add Rajat linkedIn and Github URL) Make them Links and align it with Name

  1. Zip the ExtentReports directory into Project path (you can send this Zip file as well as an Attachment in Email)
  2. Automatically open the report after tests execution.

  1. Send EMail using Java mail API to User(s) with attachment(s).

How to run the Project from Local machine

  1. Pull the code into your machine and import in IDE (Eclipse/intelliJ).
  2. Go to testng_Local.xml -> Run this file as TestNG suite It should start the execution -> Parallel Cross Browser Testing.
  • NOTE: stg_config.properties is the default configuration file.
  1. To view the Allure reports
  • Setup the Allure in your machine
  • Go to URL (https://docs.qameta.io/allure/) -> Search for Manual installation -> Steps are mentioned
  • Go to your project location
  • Open command prompt -> allure serve allure-results

How to run the Project from Jenkins __Final-OC_Selenium-Github-ActiveChoiceParams.pdf image

Email to User(s) using Jenkins: image

About

Automation Testing | Web | Java | OOPS | Selenium WebDriver | TestNG | Maven | ExtentReport | Allure Reports | Java mail API | Design Patterns (Page Object Model, Singleton) | Jenkins | Data-Driven Testing using JSON file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published