https://github.com/nikeshman16/platziapi-postman
Automating api testing with postman and newman CLI consisting of positive and negative test case scenarios for an api
https://github.com/nikeshman16/platziapi-postman
api-testing automation postman
Last synced: 9 months ago
JSON representation
Automating api testing with postman and newman CLI consisting of positive and negative test case scenarios for an api
- Host: GitHub
- URL: https://github.com/nikeshman16/platziapi-postman
- Owner: NikeshMan16
- Created: 2025-06-04T10:14:36.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-06-04T10:55:12.000Z (10 months ago)
- Last Synced: 2025-06-04T17:54:06.887Z (10 months ago)
- Topics: api-testing, automation, postman
- Language: HTML
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Postman API Test Collection
This repository contains automated API tests using [Postman](https://www.postman.com/) and [Newman](https://www.npmjs.com/package/newman), Postman's command-line tool.
## File Structure
- `collections/`: Contains exported Postman test collections (v2.1).
- `environments/`: Postman environments for future different environments like `dev`, `staging`, etc.
- `.github/workflows/`: Contains the GitHub Actions workflow to run Newman tests on every push.
## ▶️ Running Tests Locally with Newman
### Prerequisite
Install Newman:
```bash
npm install -g newman
```
Install Newman report:
```bash
npm install -g newman-reporter
```
### Running the tests from command line using newman
```bash
newman run collections/Test-project-api.postman_collection.json
```
### Running the tests and report generation using newman CLI
1. Go to the project root directory
2. Open command prompt
3. Enter the following script
Test execution and Report generation command
```bash
newman run collections/Test-project-api.postman_collection.json -r html --reporter-html-export Report.html
```
5. Report.html is the html-report generated in the project root directory.