This repository is a part of Allure Report documentation and contains code examples for integrating screenshots in Allure Report with Pytest and Playwright. You can find the original documentation:
-
Clone the repository through HTTPS:
git clone https://github.com/allure-examples/guide-pytest-playwright-screenshots.git
or SSL:
git clone [email protected]:allure-examples/guide-pytest-playwright-screenshots.git
-
In the shell of your choice, navigate to the repository directory
cd path/to/guide-pytest-playwright-screenshots
-
The repository provides with automatic scripts that install the virtual environment, necessary packages, and run the tests. Run the script correspondind to your operating system. For Linux and MacOS:
./run.sh
For OS Windows:
.\run.bat
Alternatively, create and activate Python virtual environment and install the packages manually:
python -m venv venv source venv/bin/activate pip install -m requirements.txt
After the installation, run:
pytest
-
Run Allure Report server:
allure serve -p <port-of-your-choice>
-
Browse Allure Report page on
http://127.0.0.1/<port-of-your-choice>
.