Skip to content

Global variable is exist, but not shown in GUI #7453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
m3dbedb opened this issue Oct 9, 2019 · 2 comments
Closed

Global variable is exist, but not shown in GUI #7453

m3dbedb opened this issue Oct 9, 2019 · 2 comments

Comments

@m3dbedb
Copy link

m3dbedb commented Oct 9, 2019

The bug description
Postman variables dropdown menu shows empty list of global variables, but tests shows globals variables, defined at previous step

To Reproduce

  1. Work in Postman to make it crash (Black / Tan Screen #6469)
  2. Start Postman again
  3. See data loss (there is no collections and variables)
  4. Load some collection and environment
  5. Run some test to generate a global variable
  6. Postman prints the variable using tests[pm.globals.get('variable')]=true;
  7. Postman does not show it in drop-down variables list.

Expected behavior
Usually when global variable is defined it is shown in variables menu

Screenshots
global_missing

App information (please complete the following information):

  • Native App
  • 7.8.0
  • Windows 7 32 bit
@vikiCoder
Copy link

Hi @m3dbedb,

I tried to reproduce the issue by doing following:

  1. Initially add a global variable manually alpha: beta
  2. Then Create a request that crashes the app (don't send it yet).
  3. Set a global variable in pre-request script of this request. pm.globals.set('foo', 'bar');
  4. Send the request. It will crash the app. Hence the global variable foo won't be stored.
  5. Open the app again after it crashes.
  6. See the global variables. It only shows alpha: beta that was set initially.
  7. Open a new tab and set URL to https://postman-echo.com.
  8. Log the global variable foo in pre-request script, console.log(pm.globals.get('foo'));
  9. Check the console, it shows undefined for the global variable foo. Because it not defined in the manage globals modal as well.

ezgif com-video-to-gif

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.

@vikiCoder
Copy link

Closing due to inactivity. Feel free to reopen the issue if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants