Skip to content

Comprehensive automation testing project for the Sauce Demo online shopping platform using Selenium and Cucumber Ensures full coverage of UI and functional testing with clear reporting.

Notifications You must be signed in to change notification settings

nzjahngere/009_Exception_Hunters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛍️ 009-Exception-Hunters-Project-2

📌 Introduction 🚀

The project aims to conduct a comprehensive testing of the Online Shopping Platform Sauce Demo. The testing encompasses multiple methodologies to ensure robustness and efficiency. The goal is to ensure the platform's functionality across all layers—UI and backend—is fully automated and tested with clear reporting, providing confidence in its readiness for production use.

🔹 Project Overview

✅ End-to-end testing automation using Selenium, Cucumber, Rest Assured
✅ Covers UI Testing, Functional Testing, and Negative Scenarios
✅ Uses Page Object Model (POM) for maintainable code
✅ Generates Cucumber HTML reports for execution results


📂 Project Structure

SauceDemoTest/
│── src/
│   ├── main/java/com/saucedemo/   # Page Objects (POM)
│   ├── test/java/com/saucedemo/   # Step Definitions & Test Runner
│── resources/
│   ├── features/                  # Cucumber Feature Files
│── target/                         # Test Execution Reports (Ignored in Git)
│── pom.xml                         # Maven Project Configuration
│── README.md                       # Project Documentation
│── .gitignore                      # Ignored Files List

🛠️ Tech Stack Used

Technology Purpose
Java Core programming language for automation
Selenium WebDriver UI automation testing
Cucumber BDD framework for writing tests
Maven Build & dependency management

⚙️ Setup & Installation

🔹 Prerequisites

  • Install Java (JDK 17 or higher)
  • Install Maven (mvn -version to verify)
  • Install Git (git --version to verify)
  • Google Chrome / Firefox for browser testing

🔹 Clone the Repository

git clone https://github.com/nzjahngere/009_Exception_Hunters.git
cd SauceDemoTest

🔹 Install Dependencies

mvn clean install

🚀 Running the Tests

1️⃣ Execute All Tests

mvn test

2️⃣ Run Specific Feature File

mvn test -Dcucumber.features=src/test/resources/features/ShoppingCart.feature

3️⃣ Generate Cucumber Reports

mvn verify

📊 Test Reports

🔹 Cucumber HTML Report
📍 Path: target/cucumber-reports/cucumber-html-reports.html
To view the report:

  • Open target/cucumber-reports/cucumber-html-reports.html in any browser.

📝 A Brief Overview of Test Cases Covered

UI Automation: Login, Add to Cart, Remove Items, Checkout
Functional Tests: Edge cases & validation checks
Negative Testing: Invalid login, empty cart checkout, missing fields


🤝 Contributors

  • Nazish Jehangir (@nzjahngere)
  • Special thanks to Masai School for guidance

About

Comprehensive automation testing project for the Sauce Demo online shopping platform using Selenium and Cucumber Ensures full coverage of UI and functional testing with clear reporting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published