This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Option to exclude pre-request and test scripts in flow send request
blocks
#443
darshalesachin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great to see an option to exclude/ignore pre-request script and test scripts in postman flow
send request
blocks.Background -
We do some work like modifying collection variables or gathering few details required for an API call etc in pre-request script and test script as well. We have few APIs those are dependent on other calls. So these pre-request and test scripts helps us when we run postman collection as well as running our postman monitors. but when it comes to Flow, we wanted to show these things to our users as an individual blocks so that just looking at the flow they can see what all things needs to be done before actual API call as well as what things needs to be checked/done after the call etc.
For e.g.
We generate an access token in our pre-request script by calling our token APIs, and use this generated token in our subsequent API calls. As these things happens inside pre-request script, there is no way for end user to see that inside postman Flow blocks. User has to navigate from the block to an actual request and see pre-request tabs etc.
Even if we add a separate block in Postman Flow to generate access token, the flow is still going to execute the pre-request script and we don't want that to happen.
Similarly we have other examples as well where we do lot of pre-processing inside pre-request script and some post-processing inside test scripts and we want to ignore these executions as we want to show these as an individual blocks on Flow UI.
Happy to discuss in detail.
Beta Was this translation helpful? Give feedback.
All reactions