Giter Site home page Giter Site logo

miheev / newman-runner Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 70 KB

The Runner of API Integration Tests. Run Postman based collections via multiple Newman instances.

License: Apache License 2.0

JavaScript 100.00%
newman newman-runner nodejs-cluster node-cluster node10 api-test postman-test

newman-runner's Introduction

newman-runner

The Runner of API Integration Tests. Run Postman based collections via multiple Newman instances.

Helps to speed up newman execution of multiple collections (reads collections recursively).

Supports asynchronous and thread pool (cluster API) mode.

File structure

file-structure

file-structure

Requirments

  • Exported postsman collections
  • Node v10. Tested on 10.15.3. Possibly some changes required for supporting earlier versions.

How to run

  • Setup newman config at ITRunner\newmanConfig.js
  • (Optional) Check command line parameters and defaults in ITRunner\newmanConfig.js.
  • Execute tests with npm run test or with parameters npm run test 8080 5 true

Command line options

  • Port: 8080 by default
  • Task count (asynchronous mode) or number of workers (thread pool mode): 5 by default
  • Asynchronous tasks / thread pool flag: thread pool by default

Examples

# Default configuration (short)
$ npm run test

# Default configuration with parametrs (for thread pool no need to provide parameter)
$ npm run test 8080 5

# Asynchronous mode
$ npm run test 8080 5 true

Important notes

  • Use asynchronous in case of small amount of collections (< 100)
  • Use thread pool in case of large amount of collections
  • Default value for tasks / threads is 5. It have been defined experimentally. A larger amount of tasks / threads not provide a good enough performance impact, but consumes a lot more resources. So try to find optimal value for your case.
  • Don't use cli reporter in thread pool mode. Output from multiple sources slowdown the overall process and mix tests results output (hard to read in the end). Asynchronous mode is slower, but basically have the same problems. That's why it's no recommended also.

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.