Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

setting no_proxy environment variable  #7676

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 7676

Hi, 

I am running a Protractor setup (wraps webdriverjs and phantomjs to run jasmine tests).
 The issue I have is that I want to test my site in the QA environment (unreachable
via the proxy) but I need to have a proxy set to connect to external integration points.

I added my qa site to a host file on the machine, if I ping the site without setting
a proxy I get the IP specified in the host file, Great.

However my external integration points wont resolve until I set the proxy, at which
point my hostfile is over-ridden.

I have tried to set the no_proxy env variable as below, but I cant get it to work:


What steps will reproduce the problem?
1.add domain "something.something.co.uk" to the env variables by doing the following
- 

export no_proxy=127.0.0.1,localhost,.something.something.co.uk

I have also tried - 

export no_proxy=127.0.0.1,localhost,*something.something.co.uk
export no_proxy=127.0.0.1,localhost,something.something.co.uk
export no_proxy="127.0.0.1,localhost,.something.something.co.uk"
and the same with caps for the NO_PROXY part

2. None of the above have worked for me, is this a simple syntax issue or does webdriver
not support the system no_proxy variable


What is the expected output? What do you see instead?
My test is still going to the HTTP_PROXY for the page I want to hit internally (which
resolves the live site)

Selenium version:selenium-server-standalone-2.41.0.jar
OS:RHEL 5.4
Browser:PhantomJs



Reported by craig.howlett@tradermedia.co.uk on 2014-07-29 21:19:30

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions