MarkB
2013-12-12 00:40:24 UTC
Greetings,
I've been wrestling with a BrowserMobProxy and SeleniumGrid problem for the
past couple of days. The resident guru on the BMP group recommended that I
ping the Selenium Users group for some help.
I'm copying the text from my original post in BMP group.
I appreciate all and any help.
Regards,
Mark
Well, it's been quite and adventure with BrowserMobProxy.
I posted a week ago about problems with SSL and UnknownHostException
errors, those have mostly been resolved (the UHE was resolved definitively
with a downgrade to JDK 1.6.x and the SSL issue, well I'm not quite
sure...)
The current problem, I'm experiencing is configuring proxies to work with
Selenium Grid and RemoteWebDriver.
What seems to be the problem now is that it would appear that the proxy
starts correctly and the test runs to completion but the resulting HAR file
has an empty 'entries:[]' and has just an onload entry. I'm not seeing
the individual 'GET' requests in the HAR log like I do see when I run this
test locally (i.e. using FirefoxDriver())
eg.
{"log":{"entries":[],"version":"1.2","pages":[{"id":"Page1","title":"Page1","pageTimings":{"onLoad":12757},"startedDateTime":"2013-12-11T18:58:48.325+0000"},{"id":"Page2","title":"Page2","pageTimings":{"onLoad":363},"startedDateTime":"2013-12-11T18:59:01.082+0000"},{"id":"Page3","title":"Page3","pageTimings":{"onLoad":2517},"startedDateTime":"2013-12-11T18:59:01.936+0000"},{"id":"Page4","title":"Page4","pageTimings":{"onLoad":1214},"startedDateTime":"2013-12-11T18:59:04.453+0000"},{"id":"Page5","title":"Page5","pageTimings":{"onLoad":3053},"startedDateTime":"2013-12-11T18:59:05.776+0000"},{"id":"Page6","title":"Page6","pageTimings":{"onLoad":2558},"startedDateTime":"2013-12-11T18:59:08.951+0000"},{"id":"Page7","title":"Page7","pageTimings":{"onLoad":2497},"startedDateTime":"2013-12-11T18:59:11.509+0000"}],"creator":{"name":"BrowserMob
Proxy","version":"2.0"}}}
The test setup looks like this:
ProxyServer server = new ProxyServer(4675);
server.start();
// Get the Selenium proxy object
proxy = server.seleniumProxy();
proxy.setHttpProxy("<grid_hub_hostname>:4675");
proxy.setSslProxy("<grid_hub_hostname");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(CapabilityType.PROXY, proxy);
driver = new RemoteWebDriver(new URL("http://<grid_hub_hostname>:8080/wd/hub"),capabilities);
I'll keep researching on my own but I thought I would put this out to the
group to see if anyone has encountered this before.
Regards,
Mark
I've been wrestling with a BrowserMobProxy and SeleniumGrid problem for the
past couple of days. The resident guru on the BMP group recommended that I
ping the Selenium Users group for some help.
I'm copying the text from my original post in BMP group.
I appreciate all and any help.
Regards,
Mark
Well, it's been quite and adventure with BrowserMobProxy.
I posted a week ago about problems with SSL and UnknownHostException
errors, those have mostly been resolved (the UHE was resolved definitively
with a downgrade to JDK 1.6.x and the SSL issue, well I'm not quite
sure...)
The current problem, I'm experiencing is configuring proxies to work with
Selenium Grid and RemoteWebDriver.
What seems to be the problem now is that it would appear that the proxy
starts correctly and the test runs to completion but the resulting HAR file
has an empty 'entries:[]' and has just an onload entry. I'm not seeing
the individual 'GET' requests in the HAR log like I do see when I run this
test locally (i.e. using FirefoxDriver())
eg.
{"log":{"entries":[],"version":"1.2","pages":[{"id":"Page1","title":"Page1","pageTimings":{"onLoad":12757},"startedDateTime":"2013-12-11T18:58:48.325+0000"},{"id":"Page2","title":"Page2","pageTimings":{"onLoad":363},"startedDateTime":"2013-12-11T18:59:01.082+0000"},{"id":"Page3","title":"Page3","pageTimings":{"onLoad":2517},"startedDateTime":"2013-12-11T18:59:01.936+0000"},{"id":"Page4","title":"Page4","pageTimings":{"onLoad":1214},"startedDateTime":"2013-12-11T18:59:04.453+0000"},{"id":"Page5","title":"Page5","pageTimings":{"onLoad":3053},"startedDateTime":"2013-12-11T18:59:05.776+0000"},{"id":"Page6","title":"Page6","pageTimings":{"onLoad":2558},"startedDateTime":"2013-12-11T18:59:08.951+0000"},{"id":"Page7","title":"Page7","pageTimings":{"onLoad":2497},"startedDateTime":"2013-12-11T18:59:11.509+0000"}],"creator":{"name":"BrowserMob
Proxy","version":"2.0"}}}
The test setup looks like this:
ProxyServer server = new ProxyServer(4675);
server.start();
// Get the Selenium proxy object
proxy = server.seleniumProxy();
proxy.setHttpProxy("<grid_hub_hostname>:4675");
proxy.setSslProxy("<grid_hub_hostname");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(CapabilityType.PROXY, proxy);
driver = new RemoteWebDriver(new URL("http://<grid_hub_hostname>:8080/wd/hub"),capabilities);
I'll keep researching on my own but I thought I would put this out to the
group to see if anyone has encountered this before.
Regards,
Mark
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2b382f98-9b3a-4647-aa5c-1d5699a04939%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2b382f98-9b3a-4647-aa5c-1d5699a04939%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.