rajatt95 / MasterSeleniumFramework

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
85 stars 54 forks source link
allure-report extentreports github java jenkins maven page-object-model selenium singleton-pattern test-automation testing testng

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

  3. User can apply the Filters -

    • Author - Rajat, Nishant, Gautam, Pankaj
    • Browser - Chrome, Edge, Safari, Firefox
    • TestType - Smoke, Sanity, Regression, BVT
  4. 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:

  5. Retry failed test cases

  6. Custom Enums, Exceptions, Annotations

  7. Serialization and Deserialization using Jackson-Databind dependency

  8. Data Driven testing using JSON file

  9. 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

  10. Zip the ExtentReports directory into Project path (you can send this Zip file as well as an Attachment in Email)

  11. Automatically open the report after tests execution.

  12. 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.
  3. To view the Allure reports