1.0.4 • Published 1 year ago

newman-extention v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Newman-extention

Newman-extention is a shell script that allows you to run multiple Postman collections in parallel using Newman, with the added functionality of filtering out specific test cases and running specific folders parallely.

Installation

To install Newman-extention, you will need to have Node.js and npm (Node Package Manager) installed on your machine. Once you have those, you can install Newman-ext by running the following command:

npm install newman-extention

Usage

Newman-extention is run from the command line and accepts the following options:

-f feedbackfile (required): path to the feedbackfile which contains information about the collections and environments

-c collection (required): path to the collection json file to be executed

-t tag (optional): to filter out specific test cases

-e environmentfile (required): path to the environment file to be used

-p threads (optional): number of parallel processes that can run at a time, default is number of collections in feedfile

-l folder (optional) : Run all folders parallely

-h help: displays this help message

Example:

./newman-ext.sh -f feedbackfile.json -t tagname -e environment.json -p 10 -F

Feedback file format:

Copy code

{  "runs":  [  
      {  "collection":  "/path/to/collection1.json"  }, 
       {  "collection":  "/path/to/collection2.json"  } 
    ] 
 }

Tagging

To filter out specific test cases, add tagname to the name of the test case in the Postman collection.

Dependencies

  • Newman: ^4.6.0
  • jq: ^1.6

Licence

This project is licensed under the MIT License - see the LICENSE.md file for details.

**

Authors Varsha Ryali - varsharyali@gmail.com

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago