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

发布于 2024-12-21 19:24:40 字数 2105 浏览 0 评论 0原文

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

A能够调用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)

感谢您的帮助。

I am trying to implement Grid2 using Selenium RC.

A able to invoke 1IE and 2FF browsers, but found the test case execution in one browser throws an error as below:

     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)

Appreciate your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小巷里的女流氓 2024-12-28 19:24:40

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

It looks like your client is sending a session ID that doesn't exist on the grid. Did the session timeout? Take a look at the grid console to see what it thinks is executing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文