- Test Automation - How To Build a CI/CD Pipeline Using Pytest and GitHub Actions
- Test Automation - How To Attach Public IP Adress to Allure report using Pytest and Requests
- Test Automation - Selenium Example Python Project 2022 Updates
- Install scoop from www.scoop.sh
- Install allure commandline by running the following command:
scoop install allure
- git clone
- cd to project directory
- Install virtualenv:
py -m pip install --user virtualenv
- Create a virtual environment:
py -m venv env
- Activate your virtual environment:
.\env\Scripts\activate
- Install pipenv:
pip install pipenv
- Install project dependencies using pipenv:
pipenv install
pipenv run pytest --alluredir=allure-results --browser <firefox/chrome_headless>
When no browser was selected then chrome will be used.
- Run according to tags:
pipenv run pytest -m <tag_name> --browser <firefox/chrome_headless>
- View allure results locally:
allure serve allure-results
- View allure results via Github pages:
https://nirtal85.github.io/Selenium-Python-Example/
pytest --help