This project demonstrates API testing using Postman on the Swagger Petstore API. It covers end-to-end testing scenarios including user management and store operations with proper validations and test scripts.
- Postman
- JavaScript (Postman test scripts)
- Git & GitHub
Swagger Petstore API
Base URL: {{BaseUrl}}/v2
API-Testing-Postman/
│
├── collections/
│ └── petstore_collection.json
│
├── environments/
│ └── dev_environment.json
│
├── test-data/
│ ├── users.csv
│ └── invalid_users.csv
│
├── screenshots/
│
└── README.md
- Create Single User
- Create Multiple Users
- Get User
- Update User
- Delete User
- User Login
- User Logout
- Get Inventory
- Place Order
- Find Purchase Order
- Status code validation
- Response body validation
- Field-level assertions
- Data type validation
- Dynamic value validation
- Response time checks (where applicable)
- ✅ Environment variables (
BaseUrl,userName,petOrderId) - ✅ Request chaining (passing username & orderId)
- ✅ Data-driven testing using CSV
- ✅ Negative test scenarios
- ✅ Dynamic assertions using request data
- Import the Postman Collection
- Import the Environment file
- Set
BaseUrl - Run APIs individually or via Collection Runner
- (Optional) Upload CSV for data-driven execution
Located in:
test-data/