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 tried to reproduce the issue by doing following:
Initially add a global variable manually alpha: beta
Then Create a request that crashes the app (don't send it yet).
Set a global variable in pre-request script of this request. pm.globals.set('foo', 'bar');
Send the request. It will crash the app. Hence the global variable foo won't be stored.
Open the app again after it crashes.
See the global variables. It only shows alpha: beta that was set initially.
Open a new tab and set URL to https://postman-echo.com.
Log the global variable foo in pre-request script, console.log(pm.globals.get('foo'));
Check the console, it shows undefined for the global variable foo. Because it not defined in the manage globals modal as well.
Are you still facing this issue in the latest version of the Postman app(v7.22.1)? If yes, please send us a screen recording so we can understand what exactly is happening.
The bug description
Postman variables dropdown menu shows empty list of global variables, but tests shows globals variables, defined at previous step
To Reproduce
Expected behavior
Usually when global variable is defined it is shown in variables menu
Screenshots

App information (please complete the following information):
The text was updated successfully, but these errors were encountered: