This repository demonstrates how to run the Postman
collection using Newman
within the GitHub Actions
job and generate the htmlextra
test results report
Newman
is a command-line collection runner forPostman
Newman
allows you to effortlessly run and test aPostman
collection directly from the command-lineNewman
is 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
Collection
and save your requests in a collection for reuse and sharing - Create a new
Environment
and save values you frequently use in an environment - Export the newly created
Collection
along with theEnvironment
fromPostman
to your local directory - Add the
postman_collection
andpostman_environment
to the newly createdGitHub
repo - Create a
GitHub Actions
workflow ( i.e.,.github/workflows/github-actions-htmlextra-report.yml
) to runpostman collection
usingNewman
and generatetest report
viahtml extra reporter
- Upon every
push
andpull_request
, the workflow would be triggered withArtifacts
produced during runtime ( i.e.,test-run-reports
) that contain the html report ( i.e.,test_report.html
) - Also, the
Newman Tests
workflow could be triggered via theworkflow_dispatch
event 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: