MasterSeleniumFramework
With further updates - This project is designed and developed with the help of -
-
Udemy course (OmPrakash Chavan - Selenium Java Test Framework & Best Practices - Masterclass) - Learnings from Course (UDEMY - OC - Selenium).pdf
-
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](https://user-images.githubusercontent.com/26399692/138962929-70094e77-ff3c-405e-95f8-c91c4e0912a6.png)
![image](https://user-images.githubusercontent.com/26399692/138963232-172cc99c-87df-48a6-85eb-71f749a4bf95.png)
Updations done:
ExtentReports V5
-
User can apply the Filters -
- Author - Rajat, Nishant, Gautam, Pankaj
- Browser - Chrome, Edge, Safari, Firefox
- TestType - Smoke, Sanity, Regression, BVT
-
Screenshots are attached in the ExtentReport as Base64 format.
![image](https://user-images.githubusercontent.com/26399692/138960863-e799db94-38e3-47ca-ae2d-0436fff3a08a.png)
Allure Reports
![image](https://user-images.githubusercontent.com/26399692/135977881-10e654b4-6224-4aa9-8343-841af16aeeb3.png)
User has options for customization
![image](https://user-images.githubusercontent.com/26399692/135927821-1e293278-14f2-4ad2-94dc-5505b080680d.png)
Email to User(s) using Java mail API
![image](https://user-images.githubusercontent.com/26399692/135975570-d520d163-a7eb-4695-b22c-a25979415ef5.png)
Others implementations:
-
Retry failed test cases
-
Custom Enums, Exceptions, Annotations
-
Serialization and Deserialization using Jackson-Databind dependency
-
Data Driven testing using JSON file
-
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
-
Zip the ExtentReports directory into Project path (you can send this Zip file as well as an Attachment in Email)
-
Automatically open the report after tests execution.
-
Send EMail using Java mail API to User(s) with attachment(s).
How to run the Project from Local machine
- Pull the code into your machine and import in IDE (Eclipse/intelliJ).
- 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.
- 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
Email to User(s) using Jenkins:
![image](https://user-images.githubusercontent.com/26399692/136642963-4a658292-b024-421c-ad7c-ada22777128b.png)