usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.56k stars 1.27k forks source link

Bruno CLI does not pickup folder variables #3505

Open tbskp opened 2 days ago

tbskp commented 2 days ago

I have checked the following:

Describe the bug

I have organized request within folders. In the folder settings I have defined variables.

When running bru-files with bruno-cli, the defined variables does not get interpolated.

In another issue (didn't find anymore) I've read that not all variable types are currently supported by bruno-cli.

.bru file to reproduce the bug

cli-does-not-take-folder-vars.json

Screenshots/Live demo link

image

image

image

The first log is from using UI, the latter from cli.

image

sreelakshmi-bruno commented 2 days ago

Hi @tbskp, thanks for reporting. We're actively working on this. Related #3136, #3455.

mrx234 commented 2 days ago

Having the same issue with the latest GUI version! Even though variable expressions like {{varname}} are displayed green in for instance a request's URL (which I assume means something lile "variable found somewhere") they won't get interpolated correctly when executing the request.