REST API Test Project Python + Requests

Georgi Bordukov
Published

0
  • Project creator

This project provides automated tests for the public API https://www.twine.net/signin built using Python, Pytest, and the Requests library.

Features Covered:

  1. GET list of users from page 1:
  • Validate response status code
  • Validate response JSON schema
  • Few JSON response assertions
  • Extract single user details (Id, Email)
  • Sort users by first name and print
  1. GET single user details:
  • Validate response status code
  • Validate response JSON schema
  • Few JSON response assertions
  • GET non-existent user:
  • Validate response status code
  • Validate empty response body
  1. POST create new unique user:
  • Validate response status code
  • Validate response JSON schema
  • Few JSON response assertions
  1. DELETE created user:
  • Validate response status code
  • Validate empty response body