This repository demonstrates how to run the Postman collection using Newman within the GitHub Actions job and generate the htmlextra test results report
Newmanis a command-line collection runner forPostmanNewmanallows you to effortlessly run and test aPostmancollection directly from the command-lineNewmanis built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems
- Download and Install Postman
- Create a new
Collectionand save your requests in a collection for reuse and sharing - Create a new
Environmentand save values you frequently use in an environment - Export the newly created
Collectionalong with theEnvironmentfromPostmanto your local directory - Add the
postman_collectionandpostman_environmentto the newly createdGitHubrepo - Create a
GitHub Actionsworkflow ( i.e.,.github/workflows/github-actions-htmlextra-report.yml) to runpostman collectionusingNewmanand generatetest reportviahtml extra reporter - Upon every
pushandpull_request, the workflow would be triggered withArtifactsproduced during runtime ( i.e.,test-run-reports) that contain the html report ( i.e.,test_report.html) - Also, the
Newman Testsworkflow could be triggered via theworkflow_dispatchevent trigger. - Or, the simplest way is to Fork the repository https://github.com/ashikkumar23/postman-reports, make a small change and push the changes to see workflow getting triggered with the generation of html report ( i.e.,
test_report.html)
- Summary view:
- Total Requests view:
- Failed Tests View:
- Skipped Tests View:



