To run automated test you must satisfy some requirements.
Requirements:
- Python 3 Get it here
- Allure reports Get it here
- Chrome Webdriver Get it here
To install Allure Report on Windows OS, run in CLI:
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
scoop install allure
For Mac OS run in terminal:
brew install allure
To set up environments use commands:
# Windowws
python -m venv .env
.\env\Scripts\activate
pip install -r requirements.txt
# Mac
python3 -m venv .env
. .env/bin/activate
pip install -r requirements.txt
To run tests simply use pytest
command in cli.
After test is complete, allure report starts automatically in the default browser. If allure report fails opening, run:
allure serve reports/allure/