在运行我的测试时,我需要长时间延迟(约40秒).
而且我看到,Selenium会话在此期间被删除了.
请帮忙:如何配置会话超时增加?
这是我在Selenium节点日志中开始延迟后30秒内看到的内容:
INFO org.openqa.selenium.remote.server.DriverServlet - 会话7f5fffec-4882-4c4c-b091-c780c66d379d由于客户端超时而被删除
睡眠40秒后,我的代码中出现此异常:
org.openqa.selenium.remote.SessionNotFoundException
我试图增加所有可能的超时.以下是我启动集线器的方法:
java -jar selenium-server-standalone.jar -role hub
-hubConfig selenium_hub.json
-nodeTimeout 61
-remoteControlPollingIntervalInSeconds 180
-sessionMaxIdleTimeInSeconds 240
-newSessionMaxWaitTimeInSeconds 250
-timeout 59
Run Code Online (Sandbox Code Playgroud)
这里是selenium_hub.json:
{
"host": null,
"port": 4444,
"newSessionWaitTimeout": -1,
"servlets": [],
"prioritizer": null,
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"throwOnCapabilityNotPresent": true,
"nodePolling": 5000,
"cleanUpCycle": 5000,
"timeout": 60000,
"browserTimeout": 60000,
"maxSession": 5,
"jettyMaxThreads": -1
}
Run Code Online (Sandbox Code Playgroud)
没有在节点上配置任何超时.这是我在网格控制台中看到的内容:
browserTimeout : 60000
capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
cleanUpCycle : 5000
host : null
hubConfig : /usr/local/selenium/config/selenium_hub.json
jettyMaxThreads : -1
maxSession : 5
newSessionMaxWaitTimeInSeconds …Run Code Online (Sandbox Code Playgroud) 我在 Jenkins 中运行了很长时间(几个小时)的 Rsync 备份任务。
Rsync打印进度输出到日志。在终端中查看时 - 最后一行是“令人耳目一新”,即它不断地打印出来。但是当詹金斯运行任务时 - 它不会显示该信息。
这是我在 Jenkins 中看到的,而任务正在运行:
这是我在完成后看到的(这就是我想在运行时实时看到的):
sending incremental file list
35-openMeet-flat.vmdk
131,072 0% 0.00kB/s 0:00:00
9,437,184 0% 8.88MB/s 1:38:26
21,757,952 0% 10.30MB/s 1:24:49
32,899,072 0% 10.40MB/s 1:23:58
44,302,336 0% 10.49MB/s 1:23:12
55,443,456 0% 10.92MB/s 1:19:55
66,191,360 0% 10.56MB/s 1:22:40
78,118,912 0% 10.73MB/s 1:21:17
Run Code Online (Sandbox Code Playgroud)
如何配置 Jenkins在任务运行时打印完整的输出?
PS 我会很高兴,即使我需要查找并查看一些 Jenkins 日志文件。但目前我找不到任何东西。例如我试过这个:
slavik@ubhome:/var/lib/jenkins/jobs/backup ESXI VM/builds/34$ tail log
sending incremental file list
35-openMeet.vmdk
532 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/1)
sent 434 bytes received …Run Code Online (Sandbox Code Playgroud)