Newman - run collections in paralel
Create the new npm project
Intialize a proejct
1
npm init -y
Install dependencies:
1
npm i async newman path
Result example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17{
"name": "newman_parallel",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"async": "^3.1.0",
"newman": "^4.5.6",
"path": "^0.12.7"
}
}
Scripting
Steps
- Update the path for your postman collection and environment
- Sspecify the number of concurrent run you want to launch with the constant PARALLEL_RUN_COUNT
- Execute it with
npm start
Example script
1 | const path = require('path') |