Code Monkey home page Code Monkey logo

newman-stub's Introduction

Newman Stub

Newman is a command line Collection Runner for Postman. It allows you to run and test a Postman Collection directly from the command line. It is built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems.

Newman maintains feature parity with Postman and allows you to run collections the way they are executed inside the collection runner in the Postman app.

There is so much information on Newman and the the thing that you can do with this tool are amazing. This makes automation easy. Basically running collections and test reports are stored on your application and also you have reports on the commandline. This is very useful if you are planning to run multiple collections at once.

Usage

Install the module using npm install newman-stub andd then import the module into any folder on your computer and implement the newman-stub module to help with your automation for api-level unit tests. Spend at least a few minutes Looking at the code and just add your options

    const NMR = require('newman-stub') // for Node_js

    // or

    import NMR from "newman-stub" // ES6

Getting Started

When you are working with newman runner, I guess you should have atleast written some tests in your collection. So before you import your collection write some tests inside postman. When you are done writing test import the collection and add other options to your object and then run the project.

    const options = {
        collection: require('example/collection.json'),
        globals: {
            "value": "1"
        },
        reporters: ["cli", "html"],
        timeoutRequest: 3000,
        bail: true
    }

    NMR.runner(options)

License

A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. License

Permissions: √ Commercial use √ Modification √ Distribution √ Private use

newman-stub's People

Contributors

thandoncube1 avatar dependabot[bot] 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.