This project is designed to automate SauceDemo website using the Playwright framework and Python.
- Python 3.10 and above
- allure installed on your machine: Allure Installation guide
- Clone the repository
- Setup a virtual environment (Optional)
- Install the required packages:
pip install -r requirements.txt- Install playwright browsers (use elevated permissions if needed):
playwright installUpdate the config.json file with the appropriate settings for your environment.
1.To run the tests cd to tests execute the following command:
pytestyou can add more playwright arguments to fit your needs for example:
pytest --browser=firefox --headedBy default, tests will run on chromium based browser and headless.
experiment with different args more information can be found here
2.To generate an Allure report use the following command:
allure serve allure-resultsThis project is licensed under the MIT License.