It appears that Newman is referencing the “initial value” for environment variable values, not the “current value.” This is causing some of my tests to break.
I’ll set the “initial value” to match the “current value” and that will fix the problem temporarily, but then it seems like after a day or so the “initial value” will reset and the tests will break again.
Anything you have as the current value in the app, is not sync’d to the Postman servers.
It would work fine in the app as that’s you’re current session. If you were to add only a current value and exported that environment as a JSON file, the value would be there either.
You would need to have a value in the initial value for Postman to know what it is and make that available in the environment URL.
What you could do with Newman is to pass the value for an environment in the CLI command.
--env-var "var_name=var_value"
Be doing this, it will resolve the {{var_name}} variable in the collection. This is perfect for sensitive data like passwords and API Keys that you don’t what to sync with the Postman servers.