Running Newman behind a proxy with --global-var or set HTTP_PROXY fails
See original GitHub issue1. Newman Version: 3.8.3 2. OS details (type, version, and architecture): Windows 7 Enterprise 64-bit 3. Are you using Newman as a library, or via the CLI? CLI 3. Did you encounter this recently, or has this bug always been there: Encountered recently 4. Expected behaviour: Expected Newman to work correctly 5. Command / script used to run Newman:
newman run C:\Users\sam.levene\projects\Postman_API_Testing\Public_API_Tests.postman_collection.json --global-var "HTTP_PROXY=[MYPROXY]" --global-var "HTTPS_PROXY=[MYPROXY]"
6. Sample collection, and auxilliary files (minus the sensitive details): ? None
7. Screenshots (if applicable):
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Running Newman behind a proxy with --global-var or set ...
Running Newman behind a proxy with --global-var or set HTTP_PROXY fails ; 1. Newman Version: 3.8.3 ; 2. OS details (type, version, and ......
Read more >How to set proxy when we run collection using command line
To test our Api we are setting proxy in our Postman app, but when we run it through command line its failing since...
Read more >how to specify on newman what port and host to run on
After digging and reading a ton I've figured out the best and simplest way to do so: just setting up the following environment...
Read more >newman the cli companion for postman - npm
The newman run command allows you to specify a collection to be run. ... Multiple CLI global variables can be added by using...
Read more >API tests with newman and postman - Rafaela Azevedo
Now on postman, you can create a collection and start to feed with your ... To run your tests from the command line...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
HTTP_PROXY=‘http://login:password@p.kagda.ru:80/’ newman run postman_collection.json
works for me so
Move your -e setting just after run, because in your case they are not treated as docker arg, but arg for newman.
docker run --rm --env-var "myvar1=myvalue1" --env-var "myvar2=myvalue2" -e "HTTP_PROXY=myhttpproxyadress" -e "HTTPS_PROXY=myhttpsproxyadress" -e "NO_PROXY=myexcludedadresses" -v ~/path/to/my/postman/files:/etc/newman -t postman/newman:alpine run /etc/newman/my_collection.postman_collection.json -e "/etc/newman/my_environment.postman_environment.json" --verbose --reporters cli,junit --reporter-junit-export /etc/newman/my-newman-report.xml