Newman help specifies that collection, environment and globals can be passed as a path or as a URL. I can see how to get a collection URL from Postman (by going to Share > Collection Link).
How can I get the URLs to Environment and Globals in Postman, so I could pass them to newman?
On the Collection list page, you will see Environments as a tab next to Collections. Select the Environments tab, then select the specific environment you want. The URL on this page is the Environment's URL you can use for Postman.
Allows you to set environment variables in a key=value format on the command line. You can add multiple environment variables using --env-var multiple times, for example: --env-var "key1=value1" --env-var "key2=value2" .
In the top right corner of Postman, click the environment selector and select Manage environments. Click Add to add a new environment where you'll define your OneLogin environment variables. Note: You'll need to use your API credentials to generate the access_token value.
Using Newman with the Postman Pro API:
https://api.getpostman.com/collections?apikey=$apiKey
https://api.getpostman.com/collections/$uid?apikey=$apiKey
https://api.getpostman.com/environments?apikey=$apiKey
newman run "https://api.getpostman.com/collections/$uid?apikey=$apiKey" \
--environment "https://api.getpostman.com/environments/$uid?apikey=$apiKey"
Link to Newman package
Using the Postman desktop app please try the following steps -
View in Web
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With