Note that there are some explanatory texts on larger screens.

plurals
  1. POConnection Refused running multiple environments on Selenium Grid 1.04 via Ubuntu 9.04
    primarykey
    data
    text
    <p>I'm writing a selenium grid test suite which is going to be run on a series of different machines. I wrote most of it on my macbook but have recently transfered it over to my work machine, which is running ubuntu 9.04. That's actually my first experience with a linux machine, so I may be missing something very simple (I have disabled the firewall though).</p> <p>I haven't been able to get the multienvironment thing working at all, and I've been trying and manual reviewing for a while. Any recommendations and help would be greatly, greatly appreciated!</p> <p>The error I'm getting when I run the test is:</p> <blockquote> <p>[java] FAILED CONFIGURATION: @BeforeMethod startFirstEnvironment("localhost", 4444, "*safari", "<a href="http://remoteURL:8080/tutor" rel="nofollow noreferrer">http://remoteURL:8080/tutor</a>") [java] java.lang.RuntimeException: Could not start Selenium session: ERROR: Connection refused</p> </blockquote> <p>I thought it might be the mac refusing the connection, but using wireshark I determined that no connection attempt was made on the mac . Here's the code for setting up the session, which is where it seems to be dying</p> <pre><code> @BeforeMethod(groups = {"default", "example"}, alwaysRun = true) @Parameters({"seleniumHost", "seleniumPort", "firstEnvironment", "webSite"}) protected void startFirstEnvironment(String seleniumHost, int seleniumPort, String firstEnvironment, String webSite) throws Exception { try{ startSeleniumSession(seleniumHost, seleniumPort, firstEnvironment, webSite); session().setTimeout(TIMEOUT); } finally { closeSeleniumSession(); } } @BeforeMethod(groups = {"default", "example"}, alwaysRun = true) @Parameters({"seleniumHost", "seleniumPort", "secondEnvironment", "webSite"}) protected void startSecondEnvironment(String seleniumHost, int seleniumPort, String secondEnvironment, String webSite) throws Exception { try{ startSeleniumSession(seleniumHost, seleniumPort, secondEnvironment, webSite); session().setTimeout(TIMEOUT); } finally { closeSeleniumSession(); } } </code></pre> <p>and the accompanying build script used to run the test</p> <pre><code> &lt;target name="runMulti" depends="compile" description="Run Selenium tests in parallel (20 threads)"&gt; &lt;echo&gt;${seleniumHost}&lt;/echo&gt; &lt;java classpathref="runtime.classpath" classname="org.testng.TestNG" failonerror="true"&gt; &lt;sysproperty key="java.security.policy" file="${rootdir}/lib/testng.policy"/&gt; &lt;sysproperty key="webSite" value="${webSite}" /&gt; &lt;sysproperty key="seleniumHost" value="${seleniumHost}" /&gt; &lt;sysproperty key="seleniumPort" value="${seleniumPort}" /&gt; &lt;sysproperty key="firstEnvironment" value="${firstEnvironment}" /&gt; &lt;sysproperty key="secondEnvironment" value="${secondEnvironment}" /&gt; &lt;arg value="-d" /&gt; &lt;arg value="${basedir}/target/reports" /&gt; &lt;arg value="-suitename" /&gt; &lt;arg value="Selenium Grid Java Sample Test Suite" /&gt; &lt;arg value="-parallel"/&gt; &lt;arg value="methods"/&gt; &lt;arg value="-threadcount"/&gt; &lt;arg value="15"/&gt; &lt;arg value="testng.xml"/&gt; &lt;/java&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload