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.
✅ 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
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
| Technology | Purpose |
|---|---|
| Java | Core programming language for automation |
| Selenium WebDriver | UI automation testing |
| Cucumber | BDD framework for writing tests |
| Maven | Build & dependency management |
- Install Java (JDK 17 or higher)
- Install Maven (
mvn -versionto verify) - Install Git (
git --versionto verify) - Google Chrome / Firefox for browser testing
git clone https://github.com/nzjahngere/009_Exception_Hunters.git
cd SauceDemoTestmvn clean installmvn testmvn test -Dcucumber.features=src/test/resources/features/ShoppingCart.featuremvn verify🔹 Cucumber HTML Report
📍 Path: target/cucumber-reports/cucumber-html-reports.html
To view the report:
- Open
target/cucumber-reports/cucumber-html-reports.htmlin any browser.
✅ UI Automation: Login, Add to Cart, Remove Items, Checkout
✅ Functional Tests: Edge cases & validation checks
✅ Negative Testing: Invalid login, empty cart checkout, missing fields
- Nazish Jehangir (@nzjahngere)
- Special thanks to Masai School for guidance