postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.86k stars 841 forks source link

Jump to next request if pre-prequest script fails #7166

Open ghost opened 5 years ago

ghost commented 5 years ago

Steps to reproduce: Pre-request script fails Expected result:

  1. If there no "jump over on error" flag set in pre-request script then execute request.
  2. If there is "jump over on error" flag set in pre-request script then jump over request and don't execute it.

Example: There is a request that change environment state of destination system. There is also a pre-request script that checks if conditions are met. So it conditions are not me then it is no need to change system state.

These days there is no such option, so I have to manage newman script execution order by outside test management framework. Currently it really becomes a problem to manage big test suites (more than 500 requests).

codenirvana commented 5 years ago

Note to self: Related to