1.1.1-rc.1 • Published 3 years ago

speedman v1.1.1-rc.1

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

speedman

Run postman collections in parallel powered by newman.

Installation

Speedman version 1.1.0 allows usage as a CLI, so install it globally using npm:

npm install -g speedman 

After cloning the repo run (v1.0.0):

$ npm install

Usage

Run the script using a terminal and passing the arguments as follow:

ArgumentShorthand (v1.1.0)DescriptionExample
collection-cA postman collection exported to JSON format./my_collection.postman_collection.json
instances-iThe amount of instances to run in parallel10
count-nThe total amount of requests to be distributed between the instances10

Full Example

Running speedman as a CLI (v1.1.0):

$ speedman -c ./my-collection.postman_collection.json -i 10 -n 10

Running after cloning the repo (v1.0.0):

$ node index.js --collection ./my-collection.postman_collection.json --instances 10 --count 10

Result

*** Started running 10 instances for 10 requests ***
✓ Finished Instance 1
✓ Finished Instance 2
✓ Finished Instance 3
✓ Finished Instance 4
✓ Finished Instance 5
✓ Finished Instance 6
✓ Finished Instance 7
✓ Finished Instance 8
✓ Finished Instance 9
✓ Finished Instance 10
** Finished running **