Skip to content

alderven/restaurants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General information

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 Case and Test Result:

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

How to install

  1. Download and unzip current project
  2. Install Python 3.6 or higher
  3. Install following Python libs:
  4. Install Allure Framework

How to run tests

Execute following line in CMD in the project folder:

python -m swagger_server
python -m pytest --alluredir /full/path/to/report/folder

How to generate Allure report

Execute following line in CMD in the project folder:

allure serve /full/path/to/report/folder

About

Simple Python API test based on Swagger doc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published