DEV Community

Cover image for Run Postman Collections
Dilpreet Johal
Dilpreet Johal

Posted on

Run Postman Collections

Let’s take a look at some of the advantages of running Postman collections using the Postman Collection Runner and then run an existing Postman Collection.

Postman Collection Runner

Collection Runner allows you to run a set of requests contained in a collection with the following capabilities:

  • pass data between scripts
  • log request test results
  • change the request workflow
  • run collections in a specified environment

How to run Postman Collections?

You can run your collections by clicking on the ‘Runner’ button in Postman which will open up a new Collection Runner window.

Then, select your collection, specify the environment, and hit the Run collection button.

Postman Collection Runner

This will run all the requests in the collection and show a report like this in the end. In conclusion, Postman Collection Runner is a great way to quickly automate your APIs.


Check out the video below to learn how to run Postman Collections –


To learn about API Test Automation using JavaScript, check out my free tutorial series here –

JavaScript API Test Automation Tutorial Series


📧 Subscribe to my mailing list to get access to more content like this
👍 Follow @automationbro on Twitter for the latest updates

...

I love coffees! And, if this post helped you out and you would like to support my work, you can do that by clicking on the button below and buying me a cup of coffee -

Buy me a coffee

You can also support me by liking and sharing this content.

Thanks for reading!

Discussion (3)

Collapse
otumianempire profile image
Otu Michael

I like how you make use of postman.. Do you know of a way to change the user-agent?

Collapse
automationbro profile image
Dilpreet Johal Author • Edited on

You can set that in the header, for example - "User-Agent": "Test Agent" (see attached screenshot) - dev-to-uploads.s3.amazonaws.com/i/...

Collapse
otumianempire profile image
Otu Michael

Thanks very much I was doing the same thing as shown in the image.. I was supposed to uncheck the default user-agent and create a new one.. Thanks