Skip to content
/ apipy Public

Basic API testing framework designed with POM pattern using Python-Pytest and running tests on Github Actions.

License

Notifications You must be signed in to change notification settings

mtopcu/apipy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apipy

ApiPy was created for api testing with Python pytest framework which has also requests, assertpy libraries using Page Object Model pattern. With this framework you can create api tests to call http GET, POST, UPDATE and DELETE methods.

  • requests: for calling http methods
  • asserpy: for making assertions

These api tests are run on GitHub Actions for each push request.

Install

Pipenv is used to create a virtual env. So just clone this project, go to the directory of the project and run below commands.

- python3 -m venv env
- source env/bin/activate
- pip install -r requirements.txt
- pytest

Note: In order to run sample tests https://gorest.co.in/ endpoints was used. Before start to test don't forget to get an access token from gorest.co to be able to run these tests.

About

Basic API testing framework designed with POM pattern using Python-Pytest and running tests on Github Actions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published