Skip to content

Pytest based API Testing Framework using requests module and json-server as API server hosted locally

Notifications You must be signed in to change notification settings

shanu8132/PYTEST-REST_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PYTEST-REST_API

Basic CRUD Operations using Pytest and Requests (https://pypi.org/project/requests/) packages in python with API server hosted locally.

To install the node server locally:

  1. install node.js
  2. Command to install the npm-server : npm install -g json-server
  3. Command to start the server : json-server --watch db.json #db.json will get created from the triggered location

To start the test use below command:

  1. To run the sanity : pytest -v -s sanity --html=reports/report.html
  2. To run the smoke : pytest -v -s smoke --html=reports/report.html
  3. To run the regression : pytest -v -s regression --html=reports/report.html
  4. To run all the tests : pytest -v -s --html=reports/report.html

About

Pytest based API Testing Framework using requests module and json-server as API server hosted locally

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published