在Grid2-Selenium RC中调用新的浏览器会话时出错

时间:2011-12-15 07:40:07

标签: grid selenium-grid

我正在尝试使用Selenium RC实现Grid2。

能够调用1IE和2FF浏览器,但发现在一个浏览器中执行测试用例会引发错误,如下所示:

     com.thoughtworks.selenium.SeleniumException: ERROR Server Exception:      
      sessionId should not be null; has this session been started yet?at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:101)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:95)
at com.thoughtworks.selenium.DefaultSelenium.mouseOver(DefaultSelenium.java:243)
at Framework.GlobalFunctions.mouseOver(GlobalFunctions.java:1233)
at EmployeeHealth.ProductVariables.EmployeeHealth.SelectSubMenuFromTab(EmployeeHealth.java:109)
at EmployeeHealth.TestScripts.EmployeeHealthRegressionSuite.EdCurrnUtilizModuleSelect(EmployeeHealthRegressionSuite.java:23725)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:691)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:758)
at org.testng.TestRunner.run(TestRunner.java:613)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
at org.testng.internal.thread.ThreadUtil$CountDownLatchedRunnable.run(ThreadUtil.java:165)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

看起来您的客户端正在发送网格上不存在的会话ID。会话超时了吗?看看网格控制台,看看它认为正在执行什么。