Run multiple Postman collections with a single command.
- Run multiple commands
postman-runner --config config.yml
- Run single command
postman-runner --config config.yml --name collection-1
config.yml
by default
report:
name: Weather Report
filename: reporter/weather-report.html
reporter: html
logger: true
commands:
- name: collection-1
command: newman run xxxx -e xxxx
- name: collection-2
skipped: true
command: newman run xxxx -e xxxx
** The name
is unique, and there are no duplicates.
** The skipped: true
flag indicates that the test collection is skipped.
- newman
brew install newman
- newman-reporter-html (
html
)
npm install -g newman-reporter-html
- newman-reporter-htmlextra (
htmlextra
)
npm install -g newman-reporter-htmlextra
➜ automate-api git:(master) ✗
├── config.yml
└── reporter
├── get-weather-1.html
├── get-weather-2.html
├── get-weather-3.html
└── weather-report.html
brew update
brew tap prongbang/homebrew-formulae
brew install postman-runner
or
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install postman-runner --git https://github.com/prongbang/postman-runner.git
cargo build --release