https://github.com/deepanshu-pbyte/postman-api-test-1
This is a simple project I created to practice API testing using Postman. It covers various endpoints from AutomationExercise.com and includes requests using different HTTP methods like GET, POST, PUT, and DELETE. I’ve added test scripts to each request, and everything can be run using Postman’s Collection Runner.
https://github.com/deepanshu-pbyte/postman-api-test-1
automationexercise postman postman-collection testing
Last synced: 7 months ago
JSON representation
This is a simple project I created to practice API testing using Postman. It covers various endpoints from AutomationExercise.com and includes requests using different HTTP methods like GET, POST, PUT, and DELETE. I’ve added test scripts to each request, and everything can be run using Postman’s Collection Runner.
- Host: GitHub
- URL: https://github.com/deepanshu-pbyte/postman-api-test-1
- Owner: Deepanshu-pbyte
- Created: 2025-06-24T05:57:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-06-24T08:02:07.000Z (9 months ago)
- Last Synced: 2025-06-24T08:35:52.639Z (9 months ago)
- Topics: automationexercise, postman, postman-collection, testing
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🧪 AutomationExercise API Test Collection
This repository contains a comprehensive Postman test collection for the [AutomationExercise](https://automationexercise.com/api_list) public APIs. It automates the testing of core endpoints such as product listing, account creation, deletion, and user data retrieval.
---
## Project Contents
This Postman collection includes tests for the following endpoints:
| Endpoint | Method | Description |
|------------------------------------|--------|-------------------------------------|
| `/api/productsList` | GET | Retrieve all products |
| `/api/brandsList` | GET | Retrieve all brands |
| `/api/searchProduct` | POST | Search for a specific product |
| `/api/createAccount` | POST | Create a new user account |
| `/api/deleteAccount` | DELETE | Delete an existing user account |
| `/api/updateAccount` | PUT | Update user information |
| `/api/getUserDetailByEmail` | GET | Get user details by email address |
---
## How to Use
1. **Clone or Download** this repository.
2. **Import into Postman:**
- Open Postman.
- Click **Import → Raw Text** or **Upload File**.
- Paste or upload the provided Postman Collection JSON.
3. **Run Collection:**
- Use the **Collection Runner** or **Newman CLI** to run all requests with built-in tests.
---
## Tests Included
Each request has tests such as:
- `Status code should be 200 OK`
- `Response should contain expected keys (e.g., 'products', 'brands', 'user')`
- `User creation and deletion success messages`
- `Array and object validations`
Example from `Get All Products` test:
```javascript
pm.test("Should return 200 OK", () => pm.response.to.have.status(200));
const res = pm.response.json();
pm.test("Should include a list of products", () => pm.expect(res.products).to.be.an('array'));