bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Script to run before and after all requests in the collection are sent

Open ant0x64 opened this issue 1 year ago • 0 comments

I have checked the following:

  • [X] I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

It would be great to have the ability to run a script once before and after executing all requests in the Runner. Specifically, I need to ensure that the saved token in the environment is deleted before executing the test suite with bru.deleteVar('accessToken');

Currently, the variable is being saved in the environment after request executed once, and I have no idea how to delete it before executing the test case generally, but not after/before each request

Mockups or Images of the feature

image image image

ant0x64 avatar Aug 23 '24 08:08 ant0x64