This project contains test automation framework and test automation coverage for hotel registration portal
-
Install the latest version of Python 3 from
https://www.python.org/downloads/
-
Install pip
https://pip.pypa.io/en/stable/installing/
-
Install allure reporting tool
https://docs.qameta.io/allure/#_installing_a_commandline
-
Clone this project and go to project root
-
Install virtualenv using
pip install virtualenv
-
Create virtualenv within project root
OS | Command |
---|---|
Windows | virtualenv venv |
MacOS | virtualenv -p python3 venv |
- Activate virtualenv
OS | Command |
---|---|
Windows | venv\scripts\activate |
MacOS | source venv/bin/activate |
- Install all required packages to virtual environment
pip install -r requirements.txt
set RESULTS_FOLDER=report python -m pytest test/ui/ --alluredir %RESULTS_FOLDER%
RESULTS_FOLDER=report python -m pytest test/ui/ --alluredir $RESULTS_FOLDER
To open Allure report execute
OS | Command |
---|---|
Windows | allure serve %RESULTS_FOLDER% |
MacOS | allure serve $RESULTS_FOLDER |