我只是在我的Jenkins中集成量角器端到端测试工作。 Jenkins在CentOS 7上运行。在我的一位测试工程师的帮助下,Jenkins创建了config.js文件,并为此创建了一个Jenkins作业。
在执行此作业时,我在Jenkins控制台中收到以下错误:
+ cd '/var/lib/jenkins/workspace/UI Automation Test/UI-automation-tests/Test/steps'
+ protractor config.js
(node:11138) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[07:12:43] I/launcher - Running 1 instances of WebDriver
[07:12:43] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[07:12:43] W/launcher - Ignoring uncaught error WebDriverError: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 3.10.0-862.2.3.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
答案 0 :(得分:0)
这是ChromeDriver的错误(已报告)。对于Linux系统,您可以使用此参数来避免此错误:
--disable-dev-shm-usage