Connection refused Error

55 views
Skip to first unread message

Jignesh

unread,
Aug 12, 2008, 3:21:04 PM8/12/08
to selenium-users...@googlegroups.com
Hi,

I am woking on setting up the grid on two machines windows and Linux. I am runnuing hub and two remote controls on my linux machine and one remote control on windows machine. Windows remote control gets registerd in the console. But when I run the test cases on Windows machine its gives error saying "connection refused"!!! Here is the error

java.lang.RuntimeException: Could not start Selenium session: ERROR: Connection refused\\ at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:72)\\ at com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage.startSeleniumSession(ThreadSafeSeleniumSessionStorage.java:26)\\ at com.selenium.grid.TestsWithMultipleEnv.testForthirdEnvironment(TestsWithMultipleEnv.java:42)\\ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\\ at java.lang.reflect.Method.invoke(Method.java:597)\\ at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)\\ at org.testng.internal.Invoker.invokeMethod(Invoker.java:478)\\ at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:617)\\ at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:885)\\ at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)\\ at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)\\ at org.testng.internal.thread.ThreadUtil$CountDownLatchedRunnable.run(ThreadUtil.java:132)\\ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)\\ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)\\ at java.lang.Thread.run(Thread.java:619)\\ Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Connection refused\\ at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:76)\\ at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:169)\\ at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:149)\\ at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:66)\\ ... 16 more\\
Moreover I also would like to know Is it possible to run parallel tests using JUnit 4? I mean can multiple browsers be launched using Junit 4. Is there any example of this set up?

Thanks,
Jignesh

Reply all
Reply to author
Forward
0 new messages