https://github.com/khemssharma/saucedemo-qa
Automation testing demo using python selenium on saucedemo.com
https://github.com/khemssharma/saucedemo-qa
Last synced: 4 days ago
JSON representation
Automation testing demo using python selenium on saucedemo.com
- Host: GitHub
- URL: https://github.com/khemssharma/saucedemo-qa
- Owner: khemssharma
- Created: 2026-03-02T07:15:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-03-02T08:15:43.000Z (3 months ago)
- Last Synced: 2026-03-02T11:48:14.128Z (3 months ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E-commerce Cart Testing Suite
### Scenario
You need to create automated tests for a shopping cart feature on
https://www.saucedemo.com (free practice site for test automation)
### Setup
- install command: `pip install -r requirements.txt`
- run command: `python -m pytest -v`
### Test Case 1: Successful Login & Add to Cart
- Login with valid credentials
- Add 2-3 products to cart
- Verify cart shows correct item count
- Verify cart shows correct products
### Test Case 2: Remove Item from Cart
- Add multiple items to cart
- Remove one item
- Verify item count updates
- Verify removed item is no longer in cart
### Test Case 3: Checkout Flow
- Complete checkout with valid information
- Verify order confirmation appears
- Verify success message
### Test Case 4: Negative Testing
- Try login with invalid credentials
- Verify appropriate error message
- Try checkout without adding items
- Any edge case you can think of
## Features
- Selenium WebDriver (Python library)
- Page Object Model structure (separate page classes)
- PyTest framework
- Assertions
- Waits (explicit waits, not Thread.sleep)