Possible to run multiple instances of WebDriver at once?

18 views
Skip to first unread message

laredotornado

unread,
Sep 28, 2011, 11:35:59 AM9/28/11
to Selenium Users
Hi,

I'm using the selenium-java-client 2.6 and running two concurrent Java
processes, each of which uses WebDriverBackedSelenium to execute
tests. Every so often, we see exceptions like the below

Build info: version: '2.6.0', revision: '13840', time: '2011-09-13
14:56:25'
System info: os.name: 'Linux', os.arch: 'amd64', os.version:
'2.6.38-10-generic', java.version: '1.6.0_26'
Driver info: driver.version: FirefoxDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
394)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
401)
at
org.openqa.selenium.firefox.FirefoxDriver.getScreenshotAs(FirefoxDriver.java:
200)
at
com.cm.systems.selenium.framework.SeleniumHTMLClient.runTest(SeleniumHTMLClient.java:
264)
at
com.cm.systems.selenium.framework.SeleniumHTMLClient.runSuite(SeleniumHTMLClient.java:
202)
at com.cm.systems.selenium.framework.SeleniumRunner
$Threadz.run(SeleniumRunner.java:280)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection
to http://127.0.0.1:7057 refused
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
158)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
149)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
121)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:
573)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
425)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
820)
at
org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:
390)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:
369)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:
123)
at org.openqa.selenium.firefox.FirefoxDriver
$LazyCommandExecutor.execute(FirefoxDriver.java:258)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
377)
... 6 more

Is it possible that if two WebDriver instances are started (through
separate Java processes) that they're both trying to connect to the
same port and that would be why one connection is refused? If so, is
there a way to tell WebDriver to connect to a specific port? - Dave


Paul Hammant

unread,
Sep 28, 2011, 11:50:46 AM9/28/11
to seleniu...@googlegroups.com
Doe the same also happen with Selenium 2.7?



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


Reply all
Reply to author
Forward
0 new messages