https://github.com/yahya123-hub/automation-testing-opencart
This project demonstrates automation testing of the OpenCart Demo using Java, Selenium WebDriver, and TestNG. The automation suite covers key e-commerce functionalities like user authentication, product search, cart management, and checkout process.
https://github.com/yahya123-hub/automation-testing-opencart
automation-testing java opencart selenium-java selenium-webdriver testing
Last synced: about 1 month ago
JSON representation
This project demonstrates automation testing of the OpenCart Demo using Java, Selenium WebDriver, and TestNG. The automation suite covers key e-commerce functionalities like user authentication, product search, cart management, and checkout process.
- Host: GitHub
- URL: https://github.com/yahya123-hub/automation-testing-opencart
- Owner: Yahya123-hub
- Created: 2025-01-24T09:36:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-10T16:23:19.000Z (about 1 year ago)
- Last Synced: 2025-06-03T20:04:13.387Z (about 1 year ago)
- Topics: automation-testing, java, opencart, selenium-java, selenium-webdriver, testing
- Language: HTML
- Homepage: https://www.opencart.com/index.php?route=cms/demo
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 📌 Overview
This project demonstrates **automation testing** of the [OpenCart Demo](https://demo.opencart.com/) using **Java, Selenium WebDriver, and TestNG**. The automation suite covers key e-commerce functionalities like **user authentication, product search, cart management, and checkout process**.
## 📂 Repository Contents
- **`src/tests/`** – Contains Selenium WebDriver test cases.
- **`bin/tests/`** – Compiled test class files.
- **`test-output/`** – TestNG-generated reports.
- **`.settings/`** – IDE-related configurations.
- **`.classpath` & `.project`** – Eclipse project metadata.
## 🛠 Tech Stack
- **Java** – Programming language for test scripts.
- **Selenium WebDriver** – Browser automation.
- **TestNG** – Test execution framework.
- **Maven** – Dependency and build management.
- **Extent Reports** – Test reporting.
## 📝 Test Coverage
### **1️⃣ User Authentication**
- ✅ Login with valid credentials
- ❌ Invalid login attempt (Negative Test)
- 🔄 Logout functionality
### **2️⃣ Product Search & Navigation**
- 🔍 Search for a product
- 📂 Browse product categories
- 📄 Validate product details page
### **3️⃣ Shopping Cart Management**
- ➕ Add a product to the cart
- ❌ Remove a product from the cart
- 🏷 Apply a coupon (if available)
### **4️⃣ Checkout Process**
- 🛒 Checkout as a registered user
- 💳 Fill in billing & shipping details
- ✅ Complete an order
### 📊 Test Reports
TestNG Reports – HTML reports for execution results.
Extent Reports – Visual test reports with screenshots.
### 🎯 Key Learnings
-Implementing Selenium WebDriver with TestNG.
-Structuring tests using the Page Object Model (POM).
-Handling dynamic elements, waits, and browser interactions.
-Running parallel tests with TestNG XML.
-Generating detailed Extent Reports.
