https://github.com/nibrazkhan/testng_ecommerce_automation
This is an automation testing project of an e-commerce site built using Selenium Web driver and TestNG as testing framework.
https://github.com/nibrazkhan/testng_ecommerce_automation
allure-report gradle intellij-idea java selenium-webdriver testng
Last synced: about 1 year ago
JSON representation
This is an automation testing project of an e-commerce site built using Selenium Web driver and TestNG as testing framework.
- Host: GitHub
- URL: https://github.com/nibrazkhan/testng_ecommerce_automation
- Owner: NibrazKhan
- Created: 2022-08-21T18:31:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T17:06:59.000Z (almost 4 years ago)
- Last Synced: 2025-07-01T13:07:06.858Z (about 1 year ago)
- Topics: allure-report, gradle, intellij-idea, java, selenium-webdriver, testng
- Language: Java
- Homepage:
- Size: 10.7 MB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TestNG_Ecommerce_Automation
### This is a complete project where an [E-commerce site](http://automationpractice.com/) site is automated by writing test suites using selenium-webdriver and TestNg as testing framework.
The following key modules/pages are automated:
- **SignUp**
- **Login**
- **Search**
- **Cart**
- **Checkout**
Key test cases(total **51**) are written for each module and test suites created including the positive and negative test cases.A state-transition flow of test-cases are designed and run like a user buying a product from an e-commerce site.
For failed test cases it will take a screenshot aswell at the point of failure.
The test runner codes can be extracted from this [link](https://github.com/NibrazKhan/TestNG_Ecommerce_Automation/tree/main/src/test/java/TestRunner).
The module test case steps code can be extracted from this [link](https://github.com/NibrazKhan/TestNG_Ecommerce_Automation/tree/main/src/test/java/TestRunner).
**The test cases are written following standard test case format in this excel file:**
[Test_cases.xlsx](https://github.com/NibrazKhan/TestNG_Ecommerce_Automation/files/9394338/Test_cases.xlsx)
View the excel file from this [link](https://docs.google.com/spreadsheets/d/1uAqOdIspQ-dDN8d99kBDqDSwsI-ATvWx/edit?usp=sharing&ouid=103007158823477190559&rtpof=true&sd=true).
### Technology:
- Tool: Selenium Webdriver
- IDE: Intellij IDEA
- Build tool: Gradle
- Language: Java
- Testing Framework : 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:
```
gradle clean test
```
- Selenium will open the browser and start automating.
- After automation to view allure report , give the following commands:
```
allure generate allure-results --clean -o allure-report
allure serve allure-results
```
**Below is my allure overview report**:

**Here are the suites of this project**:

**Here is the overall walkthrough of the project:** [Video](https://drive.google.com/file/d/1fx4bMzsdBhugkUjqPKAI1z9UCwFo8W_-/view?usp=sharing)
**You can watch the sanity testing of Checkout module from here:** [Video](https://drive.google.com/file/d/1nsk8-EKik-BnvjvH4mSwOwV7COD7dsas/view?usp=sharing)