Skip to content

API Testing project focused on verifying basic functionalities of a public Rest API called "Reqres" using Postman.

Notifications You must be signed in to change notification settings

iandav/reqres-api-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

reqres-api-testing

Overview

Introduction

This is a practical personal project to practice basic concepts of API Testing. The API is called "Reqres" and you can access here to view its functionalities and expected responses from the server. The main tools/technologies used are Postman, Newman, JavaScript and Chai BDD.

Scope

The scope of the project includes testing the following functionalities of the API:

  • Login
  • Register
  • Create user data
  • Update user data
  • Delete user data
  • Get a list of users
  • Get a single user
  • Basic Security and Authentication

Test Strategy

Creating Test Scenarios and Test Cases for the different features listed before, including different test case design techniques such as:

  • Equivalence Class Partition
  • Decision Tables
  • Positive/Negative Testing
  • Basic Security Testing
  • Error Guessing

Almost every request in the Test Cases must contain the following actions:

  1. Verify expected HTTP status code.
  2. Verify the response payload.
  3. Verify important headers (optional).
  4. Verify acceptable response time.

(Considering that the application is in a stable version, Smoke Testing has been omitted.)

Run tests/collections on your computer using newman

  1. Install Nodejs
  2. Install newman with npm: npm install -g newman
  3. Install newman html reporter: npm install -g newman-reporter-html
  4. Clone this repository: git clone https://github.com/iandav/reqres-api-testing/
  5. Run .json collections: newman run collection_name.json -r html
  6. View test results created in the project folder as an html file.

Test Results

Total Failed
Iterations 1 0
Requests 15 0
Prerequest Scripts 2 0
Test Scripts 15 0
Assertions 44 14
Total Failures:
14

About

API Testing project focused on verifying basic functionalities of a public Rest API called "Reqres" using Postman.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published