Month: January 2019

Postman How-to: Dynamic Iteration Within a Collection

Postman How-to: Dynamic Iteration Within a Collection

You might be familiar with using the Postman Collection Runner to run a collection over multiple variables using a CSV file. But what about situations where you don’t know the data in advance? For example, let’s say you want to test an item info API with all the current items. First you need to get the list of items, then call the info API with each item. So you don’t want to loop theĀ entire collection, just the item info request. The postman.sendNextRequest function can help you do just that. Continue reading “Postman How-to: Dynamic Iteration Within a Collection”