首页 > 解决方案 > Selenium 节点与网格断开连接

问题描述

我面临节点机器与 Hub 断开连接的挑战。因此,我在 Jenkins 中的每日批处理计划失败了。Hub 和 Node 连接了一天或 2 天,但后来它们断开连接。

有人可以帮我为什么他们断开连接。

以下是我的节点配置(node.json):

{
  "capabilities":
  [
    {
      "browserName": "firefox",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },
    {
      "browserName": "chrome",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },
    {
      "browserName": "internet explorer",
      "maxInstances": 1,
      "seleniumProtocol": "WebDriver"
    }
  ],
  "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
  "maxSession": 5,
  "port": 17946,
  "register": true,
  "registerCycle": 5000,
  "hub": "http://jenkins.abc.edu:4444",
  "nodePolling": 5000,
  "role": "node",
  "downPollingLimit": 2,
  "debug": false,
  "servlets" : [],
  "withoutServlets": [],
  "custom": {}
}

标签: seleniumselenium-grid

解决方案


推荐阅读