Skip to content

Automated Postman tests validating JSONPlaceholder API contracts, response structure, and performance, with CI integration via GitHub Actions.

Notifications You must be signed in to change notification settings

AminaSaoudi/JSONPlaceholder-API-Tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

JSONPlaceholder API Contract Tests

API Contract Tests

This repository contains automated API contract and health tests for the public JSONPlaceholder API using Postman.
The goal is to ensure response structure, data types, and status codes remain consistent with the documented API behavior.


πŸš€ Overview

This project validates:

  • HTTP status codes
  • Response times
  • JSON schema/contract for posts

Tests run automatically using:

  • Postman
  • Newman
  • GitHub Actions CI pipeline

πŸ“ Project Structure

/postman/
  β”œβ”€β”€ JSONPlaceholder_API_Contract_Tests.postman_collection.json
  └── Development_Environment.json
.github/workflows/
  └── api-tests.yml

πŸ§ͺ How to Run Locally

1. Install Newman

npm install -g newman

2. Run the Collection

newman run "postman/JSONPlaceholder_API_Contract_Tests.postman_collection.json" -e "postman/Development_Environment.json"

API Under Test

All tests run against:

https://jsonplaceholder.typicode.com

The base URL is configured via the baseUrl environment variable in the environment file.

Continuous Integration (GitHub Actions)

This project includes a CI pipeline that automatically runs all API tests on:

Every push

Every pull request

About

Automated Postman tests validating JSONPlaceholder API contracts, response structure, and performance, with CI integration via GitHub Actions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published