Git Product home page Git Product logo

ashikkumar23 / postman-collection-automation Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 240 KB

"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

HTML 100.00%
github-actions htmlextra newman newman-reporter postman postman-collection postman-automation newman-reporter-htmlextra

postman-collection-automation's Introduction

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

postman-collection-automation's People

Contributors

ashikkumar23 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.