This repository contains automated UI tests for the saucedemo.com demo shop, implemented in Python using Selenium WebDriver and Pytest.
Each test is validated and followed by a screenshot stored in /screenshots/
.
The test suite covers the following UI scenarios:
- β Login (valid, invalid, locked user)
- π Cart operations (add, remove, badge counter)
- π¦ Checkout process (form, overview, confirmation)
- π§ Navigation and product sorting
Each test saves a screenshot by name in /screenshots/
.
- Python
- Pytest
- Selenium WebDriver
- ChromeDriver
- GitHub
# | Test Case | Status |
---|---|---|
1 | Invalid login (wrong password) | β |
2 | Locked out user login | β |
3 | Valid login | β |
4 | Inventory items visible after login | β |
5 | Screenshot after successful login | β |
6 | Add item to cart | β |
7 | Cart badge shows 1 | β |
8 | Remove item from cart | β |
9 | Navigate to cart page | β |
10 | Cart is empty after removal | β |
11 | Sort products: Name (Z to A) | β |
12 | Sort products: Price (Low to High) | β |
13 | Sort products: Price (High to Low) | β |
14 | Add two items and go to checkout | β |
15 | Complete full checkout process | β |
qa-login-saucedemo-pytest/
βββ conftest.py
βββ requirements.txt
βββ README.md
βββ screenshots/
β βββ 01_invalid_login.png ... 15_checkout_complete.png
βββ tests/
βββ test_saucedemo.py
- Install Python 3.x and Chrome
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Run tests:
pytest tests/
- Screenshots will be saved automatically to
/screenshots/