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'm using postman 3.1 beta with fix for #537 . Now globals are exported. But when I use exported globals in next newman run exported globals file looks weird.
Here are globals I've got after first run:
Looks like after second run I've got not only "gl1" but also "_postman_exported_using", "_postman_exported_at" and "values".
I think the reason is that newman allows to specify globals in arbitrary JSON format and all properties of root JSON object are taken as globals. As result even native newman format for environments is parsed as arbitrary data. I think it can be implemented more intelligently. Newman can recognize that passed JSON is generated by newman It can be achieved for example by checking for _postman_exported_at or _postman_exported_using properties or maybe by introducing some special property which says "I am newman environment object, please process me accordingly". And if it is recognized, simply use values as env properties, otherwise use existing approach with arbitrary JSON data.
The text was updated successfully, but these errors were encountered:
I'm using postman 3.1 beta with fix for #537 . Now globals are exported. But when I use exported globals in next newman run exported globals file looks weird.
Here are globals I've got after first run:
Then I run the collection second time with feeding previous file as globals and exporting into new file. What I've got:
Looks like after second run I've got not only "gl1" but also "_postman_exported_using", "_postman_exported_at" and "values".
I think the reason is that newman allows to specify globals in arbitrary JSON format and all properties of root JSON object are taken as globals. As result even native newman format for environments is parsed as arbitrary data. I think it can be implemented more intelligently. Newman can recognize that passed JSON is generated by newman It can be achieved for example by checking for
_postman_exported_at
or_postman_exported_using
properties or maybe by introducing some special property which says "I am newman environment object, please process me accordingly". And if it is recognized, simply usevalues
as env properties, otherwise use existing approach with arbitrary JSON data.The text was updated successfully, but these errors were encountered: