Automation Testing for (Swag Labs)
- Clone the repository.
- Install the dependencies using
pip install -r requirements.txt
. - Execute the tests with Pytest
pytest --alluredir=allure-results
.
- Login Test: Validates login functionality with valid and invalid credentials.
- Cart & Checkout Test: Tests the ability to search for a product, add it to the cart, and proceed to checkout.
- UI Elements Test: Ensures key UI elements are present and functional on the homepage.
- Form Validation Test: Checks the form validation for the contact form.
Test reports will be generated in allure-report/index.html
.