GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - azeljkovic/python_API_testing-restful_booker: API testing examples using Python, Requests, and Pytest against the Restful Booker API.

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
Data
Data
 
 
JSON
JSON
 
 
Tests
Tests
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
Jenkinsfile
Jenkinsfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

python_API_testing-restful_booker

This is a sample project for automated API testing with Python Requests + PyTest for Restful-booker API.
Tools used for this project are:

  • Python Requests: https://requests.readthedocs.io/en/master/
  • PyTest: https://docs.pytest.org/en/latest/

Installation

Python: https://www.python.org/downloads/
Requests: https://requests.readthedocs.io/en/master/user/install/
PyTest: https://docs.pytest.org/en/latest/getting-started.html

...or simply run it as a docker container.

Configuration

I highly recommend running a local instance of the Restufl-booker as a software under test (see github manual), in order to avoid interference with other users. This can be configure in endpoints.py file by uncommenting local or global URL.

How to run tests (local environment)

Tests can be ran using one of the following commands:

pytest - run the whole test suite
pytest ./Tests/test_GetBooking.py - run tests within the specified file
pytest ./Tests/test_GetBooking.py -k 'testGetValidBooking' - run the specific test

How to run tests (docker)

docker-compose build
docker-compose up

By default, this will run the whole test suite. If you want to change this behavior, feel free to modify docker-compose.yml or to run the container through the command line with appropriate command.

About

API testing examples using Python, Requests, and Pytest against the Restful Booker API.

Topics

dockerpytestpythonpythonrequests

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.