I was working on selenium-grid-1.0.6 which was released recently.
I suppose there is some issue with it.
My cases were working fine with 1.0.4 version but when I was trying to
use the same with 1.0.6. The test cases fails without any proper
message and then the closeSeleniumSession() also fails to execute.
For TestCase I get error.
java.lang.AssertionError: com.thoughtworks.selenium.SeleniumException:
1 200 OK
at org.testng.Assert.fail(Assert.java:87)
at
com.test.commonapi.CustomCollaborationFunctions.takeActionFromDropdown(CustomCollaborationFunctions.java:
76)
at
com.test.selenium.CollaborationClass.testCollaboration(CollaborationClass.java:
134)
at
com.test.selenium.FunctionCall.Call(FunctionCall.java:28)
at
test.testcases.SourcingTab.collaboratePO(SourcingTab.java:25)
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:644)
at
org.testng.internal.Invoker.invokeMethod(Invoker.java:546)
at
org.testng.internal.Invoker.invokeTestMethod(Invoker.java:700)
at
org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1002)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:
137)
at
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
For closeSeleniumSession() :
com.thoughtworks.selenium.SeleniumException: Internal Server Error
at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:
97)
at
com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:
168)
at
com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:
104)
at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:
86)
at
com.thoughtworks.selenium.HttpCommandProcessor.stop(HttpCommandProcessor.java:
252)
at
com.thoughtworks.selenium.DefaultSelenium.stop(DefaultSelenium.java:
112)
at
com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage.closeSeleniumSession(ThreadSafeSeleniumSessionStorage.java:
33)
at
com.test.selenium.MainClass.closeSession(MainClass.java:54)
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:644)
at
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:
443)
at
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:160)
at
org.testng.internal.Invoker.invokeMethod(Invoker.java:612)
at
org.testng.internal.Invoker.invokeTestMethod(Invoker.java:700)
at
org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1002)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:
137)
at
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
When searching on the net, I found out that I was not the only who
encountered this problem... so I think this is an issue that needs to
be fixed ASAP.
Meanwhile, I've downgraded to selenium-grid-1.0.4...
Matt