Skip to content

Instantly share code, notes, and snippets.

@jameshd
Last active April 12, 2018 21:13
Show Gist options
  • Save jameshd/1ea7485b52c4a369c95529cf90f90a79 to your computer and use it in GitHub Desktop.
Save jameshd/1ea7485b52c4a369c95529cf90f90a79 to your computer and use it in GitHub Desktop.
postman_api_key=<YOUR API KEY>
collection_uuid=<something here>
environment_uuid=<something here>
curl --request GET \
--url "https://api.getpostman.com/collections/$collection_uid" \
--header 'X-Api-Key: "$postman_api_key" > collection.json
curl --request GET \
--url https://api.getpostman.com/environments/$environment_uid" \
--header 'X-Api-Key: "$postman_api_key" > environment.json
npm i newman
# first dataset
./node_modules/newman/bin/newman.js run --collection collection.json -e environment.json --iteration-data applications.csv
# another dataset...
./node_modules/newman/bin/newman.js run --collection collection.json -e environment.json --iteration-data more-applications.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment