question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can we skip a particular network request from execution, in a collection? postman.setNextRequest is to swich to some request. Byt here I need to skip particular request from execution.

See original GitHub issue
  1. Newman Version (can be found via newman -v):
  2. OS details (type, version, and architecture):
  3. Are you using Newman as a library, or via the CLI?
  4. Did you encounter this recently, or has this bug always been there:
  5. Expected behaviour:
  6. Command / script used to run Newman:
  7. Sample collection, and auxilliary files (minus the sensitive details):
  8. Screenshots (if applicable):

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
qb-snehacommented, Nov 28, 2018

How to skip the execution of request A ?

3reactions
zMacucommented, May 20, 2020

I need to skip request A and B for de 2nd iteration. How can I do it? Please help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Skip request based on condition (collection) - Help - Postman
You can use postman.setNextRequest() to skip a request , if you set postman.setNextRequest(null) it wont execute the next request.
Read more >
How do i skip one request from collection - Just getting started
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 ...
Read more >
Skip request in pre-request script - Help - Postman community
You can build request workflows based on conditionals using postman.setNextRequest() in the pre-request scripts as explained here: postman.
Read more >
Building request workflows | Postman Learning Center
Requests in folders are executed first, followed by any requests in the root of the collection. In the Collection Runner, you have the...
Read more >
Skipping a request, pre-request script and tests at the ...
Is it possible based on some conditions (for example, the URL of the request includes “test”) write Pre-request script at the collection ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found