- Test Automation - How To Build a CI/CD Pipeline Using Pytest and GitHub Actions
- Test Automation - How To Attach Public IP Address to Allure report using Pytest and Requests
- Test Automation - Selenium Example Python Project 2022 Updates
- Test Automation - How To Add Git Version Control Data To Allure Report in Python
- Test Automation - How To Attach Session Storage, Local Storage, Cookies, and Console logs To Allure Report in Selenium Python
- Test Automation - How To Capture Full-Page Screenshots In Selenium Python Using Chrome DevTools Protocol
- Test Automation - How To Edit Cookies in Selenium Python
- Test Automation - Pre-Merge Testing with GitHub Actions: A Step-by-Step Guide
- Install scoop
- Install allure commandline by running the following command:
scoop install allure
- Clone the project
- Navigate to the project directory
- Install virtualenv:
py -m pip install --user virtualenv
- Create a virtual environment:
py -m venv env
- Activate the virtual environment:
.\env\Scripts\activate
- Install project dependencies:
poetry install
need to create .env file in the project root with the following properties:
Parameter | Description | Example Value |
---|---|---|
Your email address for authentication | "[email protected]" | |
PASSWORD | Your secret password for authentication | "your_secret_password" |
VRT_APIURL | Visual Regression Tracker API URL | "https://vrt.example.com/api" |
VRT_PROJECT | Visual Regression Tracker Project ID | "project_id" |
VRT_CIBUILDID | Visual Regression Tracker Build Number | "build_number" |
VRT_BRANCHNAME | Visual Regression Tracker Branch Name | "main" |
VRT_APIKEY | Visual Regression Tracker API Key | "your_api_key" |
VRT_ENABLESOFTASSERT | Enable Soft Assertions | True (or False) |
pytest --browser <firefox/chrome_headless>
When no browser was selected then chrome will be used.
- Run according to tags:
pytest -m <tag_name> --browser <firefox/chrome_headless>
- View allure results locally:
allure serve allure-results
pytest --help
pre-commit install
pre-commit autoupdate
pre-commit run --all-files
isort .
black .