The Automation Test project allows automating test cases for UI and API.
Automation Project with screenpy and allure.
- Install python 3.10
- Install allure commandline
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
scoop install allure
- Clone this repo to your local machine
- Open the project
- Open terminal on IDE at project folder
- Install virtualenv:
py -m pip install --user virtualenv
- Create a virtual environment:
py -m venv venv
- Activate your virtual environment:
./venv/Scripts/activate
- Install dependencies:
pip install -r requirements.txt
- Run tests in a directory
pytest <path to test>
- Run tests by keyword expressions
pytest -k "keywork or test case name"
Example:
pytest --alluredir report --window-size 1920,950 -k test_youtube_hub
allure serve <path of report>
Example:
allure serve report