Demoblaze Automation Testing ๐
๐ Project Overview
This project automates end-to-end and negative test scenarios for the Demoblaze application using Selenium, Cucumber (BDD), and TestNG.
The goal is to validate critical functionalities such as Sign Up, Login, Add to Cart, and Checkout, including negative edge cases.
- Java 17
- Selenium WebDriver 4.23
- Cucumber 7.18
- TestNG 7.10
- Maven (build & dependency management)
- Extent Reports / Cucumber HTML Reports
- Faker (for random test data generation)
๐งช Test Scenarios
โ๏ธ Positive Scenarios
- Sign up with a new random user.
- Log in successfully with valid credentials.
- Add multiple products to the cart and validate totals.
โ๏ธ Negative Scenarios
- Try signing up with an existing username โ error message.
- Attempt to purchase with an expired/missing credit card โ error message.
- Add the same product twice โ verify cart updates correctly.
- Attempt to log in with invalid credentials โ error message.
โถ๏ธ How to Run Tests
- Clone the repository:
```bash
git clone https://github.com/YOUR_USERNAME/demoblaze-automation.git
cd demoblaze-automation