This repository is a part of Allure Report documentation and contains code examples for integrating Allure Report with Pytest parameterized tests. You can find the original documentation:
-
Make sure you have installed:
- Python version 3.9 or higher
- Allure Report
-
Clone the repository via HTTPS:
git clone https://github.com/allure-examples/guide-pytest-parameterization.git
or SSH:
git clone [email protected]:allure-examples/guide-pytest-parameterization.git
-
In the shell of your choice, navigate to the repository directory:
cd path/to/guide-pytest-selenium-screenshots
The repository provides automatic scripts that install the virtual environment, and necessary packages, and run the tests. Run the script that corresponds to your operating system. For Linux and MacOS:
./run.sh
For OS Windows:
.\run.bat
Alternatively:
-
Create a Python virtual environment manually:
python -m venv venv
-
Activate the virtual environment (Linux and MacOS):
source venv/bin/activate
OS Windows:
.\venv\Scripts\Activate.ps1
-
Install the packages used in the project:
pip install -r requirements.txt
-
Run Pytest:
pytest
-
To start a local Allure Report server, in the project root directory run:
allure serve -p <port-of-your-choice>
-
Browse the Allure Report page on
http://127.0.0.1:<port-of-your-choice>