How do i skip one request from collection

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

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

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.

1 Like