java - Selenium Hub 错误地认为 CLIENT_STOPPED_SESSION 已经发生

标签 java selenium selenium-grid

我正在针对 Selenium Grid 运行并行自动化测试。

有时,测试失败;

Session [c1d99cc1-c689-4053-b68d-51c3682c13c4] was terminated due to CLIENT_STOPPED_SESSION (org.openqa.grid.common.exception.GridException)
[remote server] org.openqa.grid.internal.ActiveTestSessions(ActiveTestSessions.java):105:in `getExistingSession'

Selenium 文档说;

CLIENT_STOPPED_SESSION  The session was stopped using an ordinary call to stop/quit on the client. Why are you using it again??

但是,我知道客户端没有尝试停止/退出。我使用的是并行 rspec,因此每个线程实际上都是它自己的 Ruby 实例,因此测试端没有问题。

此外,如果我使用 http://{node_ip}:5556/wd/hub/static/resource/hub.html 直接查询节点,我可以看到 session 仍然打开。如果当时发出了 quit/stop,则该 session 将被删除。

似乎只有 Selenium Grid Hub 中的 session 注册表认为该 session 已停止。没有证据表明 session 在其他任何地方停止。

Grid 是否存在将不正确的 session 标记为已停止的已知问题?

最佳答案

请关注博客并尝试该步骤,如果该链接没有帮助,请告诉我们

https://seleniummonk.blogspot.in/p/selenium-grid.html

关于java - Selenium Hub 错误地认为 CLIENT_STOPPED_SESSION 已经发生,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26611367/

相关文章:

java - GWT - GIN - GWTP - 调度程序注入(inject)问题

java - ListSelectionListener 双击

java - Selenium Grid Execution 使用我自己的框架

java - 出现错误 org.openqa.selenium.WebDriverException : Error forwarding the new session Empty pool of VM for setup Capabilities for firefox

java - 在java数组中查找重复项

java - joda-time DateTime.with*() 的性能问题

javascript - Selenium:使用 C# 在 IWebElement 上触发鼠标滚轮

java - Selenium - 复制到剪贴板不适用于嵌入式 pdf

javascript - 如何使用 Javascript :void(0) Selenium? 单击按钮

java - Selenium 网格: how to maximize browser window using RemoteWebDriver and ChromeDriver