我使用jenkins,我希望我的测试在每次提交后自动运行.
我按照以下链接中的说明操作:
http://blog.cloudbees.com/2012/01/better-integration-between-jenkins-and.html
我点击了让Jenkins自动管理全局配置/ Githup Web Hook中的钩子URL,我添加了githup的用户名和密码,但仍然在更改并推送到repo之后,我的测试没有运行!
Github Hook Log:轮询尚未开始.
有什么我忘记的吗?
PS我可以手动运行我的测试(点击立即生成),我可以在构建测试时看到我的提交(更改).
可能重复:
无法连接到chromedriver 127.0.0.1:46050(Selenium :: WebDriver :: Error :: WebDriverError)
我在亚马逊ec2 api上安装了jenkins,我正在使用jenkins进行无头黄瓜测试.
我下载了chromedriver,解压缩并将其复制到我的路径(/ usr/bin)并更改了模式:
wget http://chromium.googlecode.com/files/chromedriver_linux32_18.0.1022.0.zip
解压缩chromedriver_linux32_18.0.1022.0.zip
cp chromedriver/usr/bin
sudo chmod + x/usr/bin/chromedriver
但是当我运行我的测试(HEADLESS =真正的黄瓜功能)时,我收到此错误:
无法连接到chromedriver http://127.0.0.1:50299(Selenium :: WebDriver :: Error :: WebDriverError)
哪个chromedriver:
在/ usr/bin中/ chromedriver
哪个google-chrome:
在/ usr/bin中/谷歌铬
我的Gemfile中有无头宝石,我在env.rb中也有以下代码:
如果ENV ['HEADLESS']
require 'headless'
headless = Headless.new
headless.start
at_exit do
headless.destroy
end
end
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?有任何想法吗?
headless amazon-ec2 headless-browser jenkins selenium-chromedriver
我是ROR的新手.我使用的是Ruby 1.9.2p290,rvm 1.10.2,chromedriver version = 18.0.995.0.
当我通过执行命令运行黄瓜测试时:
捆绑exec黄瓜功能/ mytest.feature
我收到了以下错误消息:
(::)失败的步骤(::)
proxy必须是字典类型,而不是null.收到:null
(硒:: webdriver的::错误:: WebDriverError)