How do i skip one request from collection


#1

Lets say i have 5 requests in collection and i wanted to skip 2 requests while running.How do i do that?


#2

You could use postman. setNextRequest('request_name') in the last request you want to run, to jump over the ones you want to skip.


#3

https://learning.getpostman.com/docs/postman/collection_runs/building_workflows/

As Danny said, use postman.setNextRequest("request_name") to skip or jump to a certain request.

Bear in mind, if you have multiple requests with the same name Postman will jump to the last match.

Also be mindful of using this command during a collection run and if you have any requests with the same name in sub-folders etc.