Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1019 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 1019 Bytes

RESTful API Testing in Python with requests

To Get Started

Pre-requisites

Setup

  • Clone the repository into a folder
  • Go to Project root directory and install Dependency: pip install -r requirements.txt
  • All the dependencies from requirements.txt will be installed.

Run Test

  1. Open Terminal
  2. Go to project location
  3. Enter pytest and hit enter key

Capture stdout

  1. Open Terminal
  2. Go to project location
  3. Enter pytest -sv --capture=sys and hit enter key

Generate HTML Report using pytest-html

  1. Open Terminal
  2. Go to project location
  3. Enter pytest -sv --capture=sys --html=report.html and hit enter key

HTML Report

HTML Test Report