Newman CLI runner for postman

1| Download and install NodeJS
2| Open postman and export your collection

3| Install newman package

sudo npm install newman --global;

4| Run your api collection

newman run filename.postman_collection.json

Example., newman run website.postman_collection.json

5| Hiya! display result,

Collections with Environment

1| Download environment from Manage Environments

2| Run your api collection with environment

newman run api_filename.postman_collection.json -e env_filename.postman_environment.json

Example., newman run website.postman_collection.json -e website_dev.postman_environment.json

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s