You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the variable is already defined in a global environment, and does not exist in the collections environment; then the setEnvVar method will add a new variable to to the collections environment, and wont update the variable in the global environemt
Mockups or Images of the feature
I imagine a new method can be added that behaves like setEnvVar, but tagets global environments instead of collection environments
I never tried calling bru.setGlobalEnvVar(...) because there was no mention of it in the JavaScript API Reference documentation page. I assumed that it did not exist because the top of that page claims
Here is the complete set of API reference for the scripting feature in Bruno
I just tested calling bru.setGlobalEnvVar in a postRequest script and it worked.
The Documentation shoud be updated to include a reference to this method (should I create a new issue to update the documentation, or just edit the description of this issue?)
I have checked the following:
Describe the feature you want to add
I would like the ability to update a global environment variable using a postRequest script and data from the response body
currently it is possible to update collection environement variables using a postRequest script and the setEnvVar method
if the variable is already defined in a global environment, and does not exist in the collections environment; then the
setEnvVar
method will add a new variable to to the collections environment, and wont update the variable in the global environemtMockups or Images of the feature
I imagine a new method can be added that behaves like
setEnvVar
, but tagets global environments instead of collection environmentsThe text was updated successfully, but these errors were encountered: