我有一个运行Jenkins服务器的CentOS服务器,该服务器连接到运行windows server 2016的从节点。Jenkins服务器有一个配置为在从节点上运行一系列Selenium测试的作业。 对于从节点配置的启动方法,我使用"Launch Agent by connecting it to the master“,并且我已经设置了从节点,在启动时创建连接。 测试可以成功运行,但是当我通过RDP远程进入windows-slave节点并从Jenkins服务器开始构建时,我无法看到浏览器启动和显示,除非我在远程桌面连接中重新加载从代理,否则无法看到Selenium测试与网页交互。
最近,Jenkins服务器(Linux)和IIS服务器(windows)的证书都过期了,我们已经为Jenkins和远程从服务器导入了新的证书。 当我们通过浏览器启动时,它可以连接(但弹出java - (The certificate is not valid and cannot be used to verify the identity of this website),如果我们将Jenkins作为服务安装在windows机器上,它处于启动状态(不是运行状态),并且无法在日志中将Jenkins作为从属启动,我可以看到以下错误: "Caused by: sun.security.v
我使用Jenkins通过chrome驱动程序启动selenium独立服务。开始正常。但是当我在实习生测试中使用它时,铬测试无法启动。我在日志里看到了:
org.openqa.selenium.WebDriverException:
unknown error: Runtime.evaluate threw exception:
DOMException: Failed to read the 'localStorage' property from 'Window':
Access is denied for this document.
如果我在本地启动
出于安全原因,我们认为如果Jenkins windows服务以没有管理员权限的用户身份运行会更好。但是,这会导致Jenkins服务器启动时出现错误:
java.io.IOException: Access is denied at
java.io.WinNTFileSystem.createFileExclusively(Native Method) at
java.io.File.createTempFile(Unknown Source) at
hudson.util.AtomicFileWriter.<init>(Atom