Skip to content

End-to-End REST API Testing Project using Postman including authentication, authorization, CRUD operations, automated token handling, and validation tests.

Notifications You must be signed in to change notification settings

Swayam04600/DummyJSON-API-Testing-Postman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DummyJSON E-commerce Backend API Testing (Postman)

πŸ“Œ Project Overview

This project demonstrates end-to-end REST API testing of an e-commerce backend using Postman.

The goal of the project is to simulate the real responsibilities of a QA / Backend Tester including authentication handling, request chaining, CRUD validation, automated assertions, and execution of a full API test suite.

The APIs are tested against the public DummyJSON REST service.


🧰 Tools & Technologies

  • Postman
  • REST API
  • JavaScript (Postman Test Scripts)
  • JSON
  • GitHub

πŸ§ͺ Testing Areas Covered

  • Environment variables & parameterization
  • Authentication (JWT token handling)
  • Authorization testing (protected endpoints)
  • CRUD Operations (Create, Read, Update, Delete)
  • Automated response validation
  • Status code verification
  • Negative testing
  • Edge case testing
  • Security testing
  • JSON Schema validation
  • Request chaining (dynamic data passing)
  • Collection Runner execution (automation)

πŸ” Authentication Testing

Login using valid credentials and capture access token.

Authentication

πŸ”‘ Token Handling & Authorization

Token dynamically saved into environment and used to access protected endpoint /auth/me.

Token Store Automitacally- 1 Token Stored Automatically- 2 Authorization Authorization- 2

🌐 Environment Configuration

Base URL and token handled using Postman environment variables.

Environment Variables

πŸ“₯ GET Requests (Data Retrieval)

Fetching records from the backend server.

Get Post

βœ”οΈ Response Validation (Assertions)

Automated test scripts verifying response status and data.

Get Single Post Test

βž• Create Resource (POST)

Creating a new resource via API.

Create Post

✏️ Update Resource (PUT/PATCH)

Updating server data.

Update Post

❌ Delete Resource (DELETE)

Deleting a record from backend.

Delete Post

🚫 Negative Testing

Login with invalid credentials and validation of error response.

Negative Login Password

🧱 Schema Validation

Verification of response JSON structure.

Schema Validation

πŸ”’ Security Testing

Unauthorized access blocked (401 response).

Security 1 Security 2

⚠️ Edge Case Testing

Testing non-existing resources (404 response).

Edge Case

▢️ Collection Runner (Automation Execution)

Execution of complete API suite using Postman Runner.

Collection Runner 1 Collection Runner 2

πŸš€ How to Run the Project

  1. Clone or download this repository
  2. Import collection.json into Postman
  3. Import environment.json
  4. Select the environment in Postman
  5. Run the Login request first
  6. Run the complete collection using Collection Runner

πŸ“š Learning Outcomes

Through this project I learned:

  • Real-world API testing workflow
  • Handling authorization tokens
  • Writing automated API test scripts
  • Using environment variables and dynamic data
  • Backend validation and error handling
  • Running automated API test suites

πŸ‘¨β€πŸ’» Author

Swayam Uniyal

Aspiring QA Engineer | API Testing | Manual Testing | Automation (Learning)

About

End-to-End REST API Testing Project using Postman including authentication, authorization, CRUD operations, automated token handling, and validation tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published