Skip to content

Latest commit

 

History

History
192 lines (104 loc) · 5.36 KB

File metadata and controls

192 lines (104 loc) · 5.36 KB

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)