Is there some way how I can identify how the request was executed or if the request was executed as part of some sequence of requests #1443
martinsefcik
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine scenario that I have request1 which starts any async operation on backend. I know it usually takes e.g. 5 seconds to finish this operation. When this operation is done I can call request2 (it does not make sense to run it earlier as it fails). So I need to put e.g. 10 seconds sleep in post-request script in request1 or in pre-request script in request2. Everything is fine when I run these requests via runner. But when I'm executing one of this requests manually I don't want to have this sleep to be applied and wait 10 seconds.
So I'm thinking if it is possible to introduce something like:
bru.getPrevRequest()
andbru.getNextRequest()
to identify previous request executed before current one or to identify next request which will be executed after this one in case sequence of requests was executed via runnerbru.getRequestExecutionSequence()
or whatever we call it to get list of all requests which are currently executed via runner I should be able to identify somehow where I am currently in this sequencebru.getExecutinoMode()
to identify how request was executed: manually in bruno-app, using runner in bruno-app, using bruno-cli (It would not resolve my issue ideally but still better then nothing)Beta Was this translation helpful? Give feedback.
All reactions