https://github.com/chaikovskyi-qa/api-testing
Postman + Newman CI (GitHub Actions), sample API tests
https://github.com/chaikovskyi-qa/api-testing
api-testing automation github-actions newman postman qa
Last synced: 6 months ago
JSON representation
Postman + Newman CI (GitHub Actions), sample API tests
- Host: GitHub
- URL: https://github.com/chaikovskyi-qa/api-testing
- Owner: chaikovskyi-qa
- Created: 2025-08-24T15:01:00.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-09-12T16:14:05.000Z (6 months ago)
- Last Synced: 2025-09-12T18:26:45.453Z (6 months ago)
- Topics: api-testing, automation, github-actions, newman, postman, qa
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Testing with Postman + GitHub Actions
This project demonstrates basic API testing using **Postman**, **Newman**, and **GitHub Actions CI**.
It includes positive and negative test scenarios and simple automation in CI.
---
## Project Structure
- **collections/** → Postman collections (main API, negative scenarios, user API)
- **envs/** → Postman environments (dev, negative, user)
- **flows/** → Postman Flows (visual testing scenarios), e.g. user-create-check
- **.github/workflows/** → GitHub Actions configuration for running Newman tests
---
## What is implemented
- Postman Flows – create a user and check by ID
- API Collection – basic requests (GET, POST)
- Negative tests – 400, 401, 403, 404, 409 with Postman Mock Server
---
## CI (GitHub Actions)
- Runs collections automatically with **Newman**
- Generates HTML reports using **htmlextra**
- Reports available in the *Actions* tab
---
## How to run locally
1. Install [Newman](https://github.com/postmanlabs/newman):
```bash
npm install -g newman newman-reporter-htmlextra
```bash
npm install -g newman newman-reporter-htmlextra
newman run collections/ecommerce.postman_collection.json -e envs/dev.postman_environment.json
newman run collections/negative-mocks.postman_collection.json -e envs/negative-mocks.postman_environment.json
newman run collections/ecommerce.postman_collection.json \
-e envs/dev.postman_environment.json \
-r htmlextra --reporter-htmlextra-export reports/report.html