ashikkumar23 / postman-collection-automation

"Unleash the power of automation by showcasing how to execute Postman collection with Newman and generate stunning htmlextra test result reports within GitHub Actions job."

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

"Unleash the power of automation by showcasing how to execute Postman collection with Newman and generate stunning htmlextra test result reports within GitHub Actions job."

License:GNU General Public License v3.0


Languages

Language:HTML 100.0%