Last modified: 2014-10-19 17:44:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71725, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69725 - Support MEDIAWIKI_PROXY_URL for browser tests
Support MEDIAWIKI_PROXY_URL for browser tests
Status: NEW
Product: Wikimedia
Classification: Unclassified
Quality Assurance (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-18 23:17 UTC by Chris Steipp
Modified: 2014-10-19 17:44 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris Steipp 2014-08-18 23:17:01 UTC
It would be really nice for selenium tests to be able to set a proxy for the browser to use. This would help for running security testing, as well as more easily capturing exactly what the tests send/receive for debugging.
Comment 1 Antoine "hashar" Musso (WMF) 2014-08-25 20:05:02 UTC
Maybe it supports HTTP_PROXY and HTTPS_PROXY already?
Comment 2 Chris Steipp 2014-08-25 20:21:40 UTC
You can set that, but that uses the proxy for some Ruby (watir?) connection. The requests are restful requests to localhost:7055. But not for the web requests to MediaWiki.
Comment 3 Sherif Mansour 2014-09-05 17:13:03 UTC
Well is it possible for whatever browser is picked in the environmental variable could use a specific forward proxy?
Comment 4 Sherif Mansour 2014-09-05 23:32:17 UTC
https://code.google.com/p/selenium/wiki/FrequentlyAskedQuestions#Q%3a_I_need_to_use_a_proxy._How_do_I_configure_that?

Q: I need to use a proxy. How do I configure that?
A: Proxy configuration is done via the org.openqa.selenium.Proxy class like so:

Proxy proxy = new Proxy();
proxy.setProxyAutoconfigUrl("http://youdomain/config");

// We use firefox as an example here.
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(CapabilityType.PROXY, proxy);

// You could use any webdriver implementation here
WebDriver driver = new FirefoxDriver(capabilities);
Comment 5 Sherif Mansour 2014-09-05 23:35:26 UTC
I'll give this a try in a while: http://krosinski.blogspot.co.uk/2012/11/selenium-firefox-webdriver-and-proxies.html
Comment 6 Sherif Mansour 2014-09-06 09:55:31 UTC
Not sure how to edit the change the WMF to include a setting to switch the use of proxy settings on our off but the capability is there.

browser.preferences.proxy.use_http=1

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links