Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 2.52 KB

README.md

File metadata and controls

41 lines (26 loc) · 2.52 KB

Postman Collection Automation using Newman

Actions Status

This repository demonstrates how to run the Postman collection using Newman within the GitHub Actions job and generate the htmlextra test results report

🚀 Description:

  • Newman is a command-line collection runner for Postman
  • Newman allows you to effortlessly run and test a Postman collection directly from the command-line
  • Newman is built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems

🚀 Steps:

  • 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 the Environment from Postman to your local directory
  • Add the postman_collection and postman_environment to the newly created GitHub repo
  • Create a GitHub Actions workflow ( i.e., .github/workflows/github-actions-htmlextra-report.yml ) to run postman collection using Newman and generate test report via html extra reporter
  • Upon every push and pull_request, the workflow would be triggered with Artifacts 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 the workflow_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 )

🚀 Report Overview:

  • Summary view:

summary

  • Total Requests view:

total_requests

  • Failed Tests View:

failed_tests

  • Skipped Tests View:

skipped_tests