I have a collection for specified environment.
How can I run that collection for that environment via Newman?
For example: In my collection I have this kind of requests:
{{url_production}}/streams/remove/{{private collection id}}.json?key{{json_key}}
{{url_production}} - environment
{{private collection id}} - global
{{json_key}} - global
I have exported both the environment and the Collection JSON files but when I run the collection via Newman all cases are going to fail. (See the screenshot)
How this will be done?
P.S the the values of globals which are mentioned in the url are generated by previous requests in the collection.
How can we do with globals as well? I mean every time after sending the same request I should get different values of globals and this collection I need to run via Newman.
Thanks in advance.