【发布时间】:2015-06-05 11:26:37
【问题描述】:
我用的是最新的火狐,xvfb
Django==1.8.2
selenium==2.45.0
还有我的 gitlab-ci 作业脚本
virtualenv env
source env/bin/activate
pip install -r requirements.txt
python manage.py test
在添加 selenium 测试之前,django 测试用例通过且没有任何错误。 当我将 selenium 测试用例添加到我的项目 ci shell 提示以下错误
raise WebDriverException("The browser appears to have exited "
WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.
在我的本地系统中,我可以毫无错误地运行这两个测试。我想我在作业脚本中遗漏了一些东西。
谢谢..
【问题讨论】: