【发布时间】:2015-10-21 21:38:34
【问题描述】:
我们面临一个问题,例如从我的本地(Windows)机器 chrome 浏览器运行 ROBOTFRAMEWORK 测试用例时,我的测试用例执行通过并通过 Jenkins Chrome 浏览器未打开,但我的测试用例正在后台运行。
但是当我在 Jenkins 的远程桌面 (Windows) 上运行我的测试用例时,它不会打开 Chrome 浏览器,而且我的测试用例也失败了。但是从 cmd 可以正常工作。我尝试降级 chrome 版本的工作。
我得到的错误是:
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: TimeoutException: Message: timeout: Timed out receiving message from renderer: 10.000 (Session info: chrome=44.0.2403.107) (Driver info: chromedriver=2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.3 x86_64)
| FAIL | TimeoutException: Message: timeout: Timed out receiving message from renderer: 10.000 (Session info: chrome=44.0.2403.107)
(Driver info: chromedriver=2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.3 x86_64)
【问题讨论】:
-
你有错误吗?如果是这样,它们是什么? jenkins 是否在 Windows 机器上作为服务运行?它不能作为服务运行,因为它需要访问显示。
标签: google-chrome jenkins robotframework