Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abirhossenmunna/swaglabs_testng_automation
This project involves automation testing for a Swag Labs site, utilizing Selenium WebDriver for web interactions and TestNG as the testing framework to ensure robust and efficient test execution.
https://github.com/abirhossenmunna/swaglabs_testng_automation
allure-report facker gradle intellij-idea java selenium selenium-webdriver testing testng-framework
Last synced: about 14 hours ago
JSON representation
This project involves automation testing for a Swag Labs site, utilizing Selenium WebDriver for web interactions and TestNG as the testing framework to ensure robust and efficient test execution.
- Host: GitHub
- URL: https://github.com/abirhossenmunna/swaglabs_testng_automation
- Owner: AbirHossenMunna
- Created: 2025-02-09T22:22:50.000Z (1 day ago)
- Default Branch: main
- Last Pushed: 2025-02-09T23:13:28.000Z (1 day ago)
- Last Synced: 2025-02-09T23:25:01.387Z (about 24 hours ago)
- Topics: allure-report, facker, gradle, intellij-idea, java, selenium, selenium-webdriver, testing, testng-framework
- Language: Java
- Homepage: https://www.saucedemo.com/
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwagLabs_TestNG_Automation
### This is a complete project where a DailyFinance site is automated by writing test suites using selenium-webdriver and TestNg as testing framework.
The following key modules/pages are automated:* Login Functionality Test
* Add to Cart Functionality
* Checkout Process Validation
* Sorting Products Validation
* Logout Functionality Test
* Locked-Out User Validation
* Cart Badge Count ValidationFor failed test cases it will take a screenshot aswell at the point of failure.
### Technology:
* Tool: Selenium Webdriver
* IDE: Intellij
* Build tool: Gradle
* Language: Java
* Test_Runner: TestNG### Prerequisite:
* Need to install jdk 11, gradle and allure
* Configure Environment variable for jdk 11, gradle and allure
* Clone this project and unzip it
* Open the project folder
* Double click on "build.gradle" and open it through IntellIJ IDEA
* Let the project build successfully
* Click on "Terminal" and run the automation scripts### Run the Automation Script by the following command:
* Selenium will open the browser and start automating for smokeSuites.
```bash
gradle clean test
```
### Run the Allure Report Script by the following command:
```bash
allure generate allure-results --clean -o allure-report
allure serve allure-results
```
#### Here is the Summary report:
![Screenshot 2025-02-10 050718](https://github.com/user-attachments/assets/16907336-c7db-4a34-bbf9-caf6fbe00e06)#### Here is the Allure report overview:
![Screenshot 2025-02-10 051102](https://github.com/user-attachments/assets/b1bbb0f4-5d54-43c8-a35f-cfb546be48fb)#### Here are the allure suites of this project:
![Screenshot 2025-02-10 051131](https://github.com/user-attachments/assets/6fbcc939-0219-428e-8156-9b4b51496b6d)#### Here are the Allure Behaviors of this project:
![Screenshot 2025-02-10 051141](https://github.com/user-attachments/assets/b28b495b-f045-4967-a18c-9b777b85cd8c)