从詹金斯触发硒脚本时,chrome浏览器无法启动

时间:2019-08-27 17:00:18

标签: macos selenium jenkins

从詹金斯触发硒脚本时,Chrome浏览器无法启动。我已经在本地Mac机器上完成了jenkins设置。以下是来自日志的信息:

-------------------------------------------------------
Running TestSuite
Starting ChromeDriver 76.0.3809.126 (d80a294506b4c9d18015e755cee48f953ddc3f2f-refs/branch-heads/3809@{#1024}) on port 13498
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Aug 27, 2019 10:25:10 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
Tests run: 16, Failures: 1, Errors: 0, Skipped: 15, Time elapsed: 40.031 sec <<< FAILURE!

我在项目中使用过maven和testng。根据其他帖子上发布的解决方案,我尝试了以下操作,但没有帮助:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo mv /Library/LaunchDaemons/org.jenkins-ci.plist /Library/LaunchAgents/org.jenkins-ci.plist

0 个答案:

没有答案