selenium - 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": {}
}
解决方案
推荐阅读
- qt - 基于屏幕分辨率计算 QT 5.12 中的投影矩阵
- java - 如何在 clojure 中导入 java 类?
- c# - 传递下拉列表数据,然后在表单中显示
- visual-studio-code - 如何在本地安装 VSCode 扩展?
- charts - 生成图表时出错:Google 地球引擎中显示计算超时
- c++ - 使用 C++ 实现 Web 自动化
- javascript - WKWebView 实现 javascript remove() 但留下空行
- ios - Swift:解码 JSON 响应并将嵌套的 JSON 存储为字符串或 JSON
- python - 我想将 conafile.py 一分为二,两个文件都包含一些方法,然后将第二个 .py 文件的方法继承到 conanfile.py
- tensorflow - AttributeError:“TFSequenceClassifierOutput”对象没有属性“argmax”