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
I've searched existing issues and found nothing related to my issue.
Describe the bug
Where this came up:
It was possible to extract a sub-string from the value saved in an environment dependent environmental variable (saved in the .env file).
Breakage:
Now if I use define a Pre Request Var in the VARS tab and load it in my Script: const cookie = bru.getVar('Cookie');
then it is no longer resolved: console.log({cookie});
returns {{cookie}}, where it used to return the value of the cookie env var, which I could work with in the script.
I have checked the following:
Describe the bug
Where this came up:
It was possible to extract a sub-string from the value saved in an environment dependent environmental variable (saved in the .env file).
Breakage:
Now if I use define a Pre Request Var in the VARS tab and load it in my Script:
const cookie = bru.getVar('Cookie');
then it is no longer resolved:
console.log({cookie});
returns
{{cookie}}
, where it used to return the value of the cookie env var, which I could work with in the script..bru file to reproduce the bug
const envvar1 = bru.getVar('ev1');
console.log({envvar1});
req.setHeader("test", envvar1);
console.log(req.headers);
Screenshots/Live demo link
The text was updated successfully, but these errors were encountered: