我试着在windows中安装calabash-cucumber和calabash-android已经有3天了,我还在环境中设置了ruby path变量。但是我已经不再出错了。
C:\>gem install cucumber错误如下所示,
ERROR: Could not find a valid gem 'cucumber' (>= 0) in any repository错误:执行gem时...(Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT:连接尝试失败,因为连接方在一段时间后没有正确响应,或者建立的连接失败,因为连接的主机没有响应。-连接(2) (http://rubygems.org/ latest_specs.4.8.gz)
C:\>gem install calabash-android错误如下所示,
ERROR: Could not find a valid gem 'calabash-android' (>= 0) in any repository错误:执行gem时...(Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT:连接尝试失败,因为连接方在一段时间后没有正确响应,或者建立的连接失败,因为连接的主机没有响应。-连接(2) (http://rubygems.org/ latest_specs.4.8.gz)
我是calabash移动自动化测试的新手。请任何人帮助解决这个问题。我正在急切地学习calabash移动自动化工具。谢谢你的预支..
发布于 2013-06-07 21:54:35
以下是我采取的步骤,我可以成功地在使用64位Windows 7的Android设备上运行calabash测试:
安装Ant (1.9)
http://ant.apache.org/
安装Ruby
http://rubyinstaller.org/
Install the 1.9.3 version (not the 2.0.0 or higher yet). 安装Ruby DevKit
http://rubyinstaller.org/downloads
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
安装Calabash
https://github.com/calabash/calabash-android/blob/master/documentation/installation.md
确保路径设置正确。
也许你的互联网连接或远程服务器暂时中断了,但这一切都应该可以正常工作。
发布于 2015-02-17 19:27:34
如果您尚未对代理环境变量进行设置,请在命令提示符下输入以下命令进行设置
set HTTP_PROXY = http://your-proxy-address:your-port-number您的命令提示符可能不知道您的代理IP和端口,这是导致此错误的原因。
https://stackoverflow.com/questions/16828513
复制相似问题