伙计们也许有人有同样的问题,我是詹金斯的新手,并试图在那里进行我的第一次测试,但是遇到了问题,这是我的错误按摩:
> os.path.basename(self.path), self.start_error_message)
E selenium.common.exceptions.WebDriverException:
Message: 'chromedriver' executable needs to be in PATH. Please see
https://sites.google.com/a/chromium.org/chromedriver/home
../../shiningpanda/jobs/1c4a1d02/virtualenvs/d41d8cd9/lib/python3.5/site-
packages/selenium/webdriver/common/service.py:81: WebDriverException
=============================== warnings summary ========================
None
could not create cache path /Users/.cache/v/cache/lastfailed
-- Docs: http://doc.pytest.org/en/latest/warnings.html
===================== 1 warnings, 1 error in 0.41 seconds ================
Build step 'Virtualenv Builder' marked build as failure
Finished: FAILURE
答案 0 :(得分:0)
这可能意味着很少的事情
未安装Chrome驱动程序
这意味着您的Jenkin从属节点没有安装Chrome驱动程序,或者它们不在PATH位置变量文件夹中
PATH变量不同
您的构建的PATH变量可能与您在终端中看到的变量不同。因此,在您的构建脚本中添加以下
export PATH=<PATHFROMTERMINAL>
或者,如果您使用的是某个插件,请在该
中设置环境变量选项