newman-extention
v1.0.4
Published
Newman extention is a utility to run multiple postman collections parallely in newman. It also allows to run specific testcases by tagging them and running only those testcases. It also allows to run all folders inside a collection parallely
Downloads
1
Readme
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 - [email protected]