Playwright UI tests against https://www.saucedemo.com/
- python3
- pip
- mac
- https://playwright.dev/python/docs/intro
Development has been performed within a virtual python environment, isolating impact and dependencies from the host system.
- clone the repo
- run
python3 -m venv venv
to create a virtual env - run
source venv/bin/activate
to activate the virtual env - run
pip install ./requirements.txt
to install all python dependencies
pytest
-> cli output only, runs on 1 headless browserpytest --html=report.html --self-contained-html
-> generate html reportpytest --tracing on
-> run with tracing to view test step breakdown and logs during executionpytest --headed --browser webkit --browser firefox --browser chromium
-> runs headed on all browsers- append
--video on
to the run command to capture video recordings of each test
Run deactivate
in your cli tab running this repo to exit the venv.