Giter VIP home page Giter VIP logo

postman-to-loadimpact's Introduction

postman-to-loadimpact

Converts Postman collections to Load Impact user scenarios. Given a Postman collection, the transformer will auto-generate a Lua script to be imported as user scenario for your load tests.

The transformer converts Postman requests and variables into Lua requests and variables respectively.

Postman pre-requests and tests are appended as comments before and after its respective Lua request. The pre-request and test behaviour could easily be replicated with the Load Impact scripting API.

The Postman Collection Format v1 and v2 are supported.

Installation and usage

As npm global package:

  • npm install -g postman-to-loadimpact
  • postman-to-loadimpact path/file.json

As local repository:

  • git clone [email protected]:loadimpact/postman-to-loadimpact.git
  • cd postman-to-loadimpact
  • npm install
  • bin/postman-to-loadimpact.js examples/postman/v2/echo.json

On windows:

  • node bin/postman-to-loadimpact.js examples/postman/v2/echo.json

Options

The transformer provides a command line interface with different options.

  Usage: postman-to-loadimpact <filePath> [options]

  Convert a Postman collection to Load Impact Lua user scenario

  Options:

    -h, --help                    output usage information
    -V, --version                 output the version number
    -j --input-version <version>  Input version. Options `2.0.0` or `1.0.0`. Default `2.0.0`.
    -o --output <path>            Target file path where the converted collection will be written. Default `console`

Examples

A collection of Postman examples are located under ./examples/postman.

The user scenario will be auto-generated when running:

$ postman-to-loadimpact examples/postman/v2/echo.json

$ postman-to-loadimpact examples/postman/v1/echo.json -j 1.0.0

Please, use the issue tracker to open a discussion or bug report.

Happy load testing!

postman-to-loadimpact's People

Contributors

ppcano avatar czardoz avatar

Watchers

James Cloos avatar Nhut Phan 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.