Open
Description
Version and environment information:
- Newman Version (can be found via
newman -v
): 5.1.2 - OS details (type, version, and architecture): Windows 10
- Are you using Newman as a library, or via the CLI? CLI
- Did you encounter this recently, or has this bug always been there: I believe, always there
- Expected behaviour: Next request set in the function `postman.setNextRequest('request-id') should be executed
- Command / script used to run Newman: newman run "<collection.json>" --folder "" -e "<environment.json>" -g "<globals.json>"
- Sample collection, and auxiliary files (minus the sensitive details):
- Screenshots (if applicable):
Steps to reproduce the problem:
-
Fetch the id of next request to be executed in the flow. I fetched this via postman API
-
Based on the desired flow, set the next request via request_id
-
Run the collection in collection runner and in the command line using newman
Observation:
-
Collection runs without any issues in collection runner whereas it fails in commandline. Refer the screenshot attached above.
-
Surprisingly when the next request is set via request_name, I do not encounter this problem. But the issue is we have requests with same name under different folders and as id is unique, this will be preferred way of setting the request workflow for us