This repository contains automated API tests using Postman and Newman, Postman's command-line tool.
collections/: Contains exported Postman test collections (v2.1).environments/: Postman environments for future different environments likedev,staging, etc..github/workflows/: Contains the GitHub Actions workflow to run Newman tests on every push.
Install Newman:
npm install -g newmanInstall Newman report:
npm install -g newman-reporternewman run collections/Test-project-api.postman_collection.json- Go to the project root directory
- Open command prompt
- Enter the following script
Test execution and Report generation command
newman run collections/Test-project-api.postman_collection.json -r html --reporter-html-export Report.html- Report.html is the html-report generated in the project root directory.