【问题标题】:Selenium Hub incorrectly believes CLIENT_STOPPED_SESSION has happenedSelenium Hub 错误地认为 CLIENT_STOPPED_SESSION 已经发生
【发布时间】:2014-12-24 00:53:00
【问题描述】:

我正在针对 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 直接查询节点,我可以看到会话仍然打开。如果当时发出了退出/停止,则该会话将被删除。

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

Grid 是否存在一个已知问题,其中不正确的会话被标记为已停止?

【问题讨论】:

  • 你使用的是什么版本的硒?
  • 更新,进一步调查总是有'退出'命令用于2分钟前失败的无关测试/线程。
  • @RobbieWareham 我有类似的问题,有什么解决方案可以解决这个问题吗?增加会话超时是否可以解决它?......错误:“会话 [2cbc449f-1394-4e95-930d-016e2ea78d1a] 由于发生 CLIENT_STOPPED_SESSION (org.openqa.grid.common.exception.GridException) 而终止”
  • 不抱歉,我有一个不使用 Grid 的新实现,但会启动节点以进行直接通信,因此不再有此问题

标签: java selenium selenium-grid


【解决方案1】:

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

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

【讨论】:

  • 抱歉,我看不出这与问题有什么关系?
猜你喜欢
  • 2023-03-20
  • 1970-01-01
  • 1970-01-01
  • 2021-04-06
  • 2019-02-21
  • 2018-02-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多