You need to create automated tests for a shopping cart feature on https://www.saucedemo.com (free practice site for test automation)
- install command:
pip install -r requirements.txt - run command:
python -m pytest -v
- Login with valid credentials
- Add 2-3 products to cart
- Verify cart shows correct item count
- Verify cart shows correct products
- Add multiple items to cart
- Remove one item
- Verify item count updates
- Verify removed item is no longer in cart
- Complete checkout with valid information
- Verify order confirmation appears
- Verify success message
- Try login with invalid credentials
- Verify appropriate error message
- Try checkout without adding items
- Any edge case you can think of
- Selenium WebDriver (Python library)
- Page Object Model structure (separate page classes)
- PyTest framework
- Assertions
- Waits (explicit waits, not Thread.sleep)