This project contains simple API test and Allure Report based on Swagger doc
Swagger server generated manually using Swagger Editor. It can also be integrated into CI by using Swagger Server Stub Generator.
№ | Test Script | Test description | Run Result |
---|---|---|---|
1 | test_restaurants_add_and_get.py | Add restaurant | Passed |
1 | test_restaurants_add_and_get.py | Get restaurant | Passed |
- Download and unzip current project
- Install Python 3.6 or higher
- Install following Python libs:
- Install Allure Framework
Execute following line in CMD in the project folder:
python -m swagger_server
python -m pytest --alluredir /full/path/to/report/folder
Execute following line in CMD in the project folder:
allure serve /full/path/to/report/folder