https://github.com/vishnurag666/postman_api_testing
Welcome to the API Testing Project — a robust and well-structured repository where I’ve implemented comprehensive API tests using all major HTTP methods with a strong focus on validation and data integrity through assertions.
https://github.com/vishnurag666/postman_api_testing
api-testing assertions javascript json
Last synced: 6 months ago
JSON representation
Welcome to the API Testing Project — a robust and well-structured repository where I’ve implemented comprehensive API tests using all major HTTP methods with a strong focus on validation and data integrity through assertions.
- Host: GitHub
- URL: https://github.com/vishnurag666/postman_api_testing
- Owner: vishnurag666
- Created: 2025-04-08T10:59:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-08T16:30:27.000Z (over 1 year ago)
- Last Synced: 2025-05-13T00:56:59.676Z (about 1 year ago)
- Topics: api-testing, assertions, javascript, json
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔍 API Testing Project
Welcome to the **API Testing Project** — a robust and well-structured repository where I’ve implemented **comprehensive API tests** using all major HTTP methods with a strong focus on validation and data integrity through assertions.
---
## 📌 Project Overview
This project demonstrates end-to-end API testing using:
- ✅ **GET** – Retrieve resources and validate response structure, status codes, and data integrity.
- ➕ **POST** – Create new resources and assert successful creation and correct response payload.
- ♻️ **PUT** – Fully update existing resources and ensure the changes reflect accurately.
- 🩹 **PATCH** – Partially update a resource and validate targeted updates.
- ❌ **DELETE** – Delete resources and assert successful deletion or appropriate error messages.
Each request includes **assertions to validate**:
- Status codes (e.g., `200 OK`, `201 Created`, `204 No Content`)
- Response body and specific key values
- Headers (like `Content-Type`, `Authorization`)
- Error handling and edge cases
---
## 🚀 Technologies Used
| Tool/Framework | Purpose |
|----------------|----------------------------------|
| **Postman** | Sending requests & writing tests |
| **JavaScript** | Writing test scripts |
| **JSON** | Request/Response structure |
---
## 🧪 Key Test Scenarios
- 🔄 Fetch all records and validate list integrity
- 🔍 Get a specific record and assert on individual fields
- 🧾 Create a new entry and confirm it's successfully stored
- 🛠️ Update entries using both PUT & PATCH methods
- ❌ Delete records and ensure they’re no longer accessible
- 🚧 Negative testing: invalid inputs, missing fields, wrong endpoints
---