I have checked the following:
This feature
Describe the feature you want to add, and how it would change your usage of Bruno
Allow to halt the execution of the before request step.
Currently running bru.runner.skipRequest() does not stop the execution of the block. This make subsequent operation to be executed. ex:
if( bru.getVar("some_var") ) {
bru.runner.skipRequest();
}
bru.setVar("key","value")
I'm executing this from a scrip closure, so I can't use a return to bail out of the before-request as it would only exit the closure and therefore lead to the bru.setVar("key","value") being executed.
Could we have access to some sort of API or throw a supported exception in order to completely halt the execution of the before request from anywhere ?
Mockups or Images of the feature
No response
I have checked the following:
This feature
Describe the feature you want to add, and how it would change your usage of Bruno
Allow to halt the execution of the before request step.
Currently running
bru.runner.skipRequest()does not stop the execution of the block. This make subsequent operation to be executed. ex:I'm executing this from a scrip closure, so I can't use a
returnto bail out of the before-request as it would only exit the closure and therefore lead to thebru.setVar("key","value")being executed.Could we have access to some sort of API or throw a supported exception in order to completely halt the execution of the before request from anywhere ?
Mockups or Images of the feature
No response