简体   繁体   English

如何在Windows中安装calabash?

[英]How to install calabash in windows?

I was trying to install calabash-cucumber and calabash-android in windows for last 3 days.I have set ruby path variable in environment also. 我试图在Windows中安装calabash-cucumber和calabash-android最近3天。我也在环境中设置了ruby路径变量。 But i'm getting below error.. 但我得到以下错误..

C:\\>gem install cucumber error likes below, C:\\>gem install cucumber错误如下,

ERROR:  Could not find a valid gem 'cucumber' (>= 0) in any repository

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the connected party di d not properly respond after a period of time, or established connection failed because connected host has failed to respond. 错误:执行gem时...(Gem :: RemoteFetcher :: FetchError)Errno :: ETIMEDOUT:连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接主机发生故障而建立连接失败回复。 - connect(2) ( http://rubygems.org/ latest_specs.4.8.gz) - connect(2)( http://rubygems.org/ latest_specs.4.8.gz)

C:\>gem install calabash-android

Error likes below, 错误如下,

ERROR:  Could not find a valid gem 'calabash-android' (>= 0) in any repository

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the connected party di d not properly respond after a period of time, or established connection failed because connected host has failed to respond. 错误:执行gem时...(Gem :: RemoteFetcher :: FetchError)Errno :: ETIMEDOUT:连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接主机发生故障而建立连接失败回复。 - connect(2) ( http://rubygems.org/ latest_specs.4.8.gz) - connect(2)( http://rubygems.org/ latest_specs.4.8.gz)

I'm new to calabash mobile automation testing. 我是葫芦移动自动化测试的新手。 Please any one help to resolve this problem. 请任何人帮助解决此问题。 I'm eagerly learn to calabash mobile automation tool. 我急切地想学习calabash移动自动化工具。 Thanks for advance.. 谢谢你提前..

These are the steps that I took and I successfully can run a calabash test on an Android device using Windows 7, 64 bit: 这些是我采取的步骤,我成功地可以使用Windows 7,64位在Android设备上运行calabash测试:

Install Ant (1.9) 安装Ant(1.9)
http://ant.apache.org/ http://ant.apache.org/

Install Ruby 安装Ruby
http://rubyinstaller.org/ http://rubyinstaller.org/
Install the 1.9.3 version (not the 2.0.0 or higher yet). 安装1.9.3版本(不是2.0.0或更高版本)。

Install Ruby DevKit 安装Ruby DevKit
http://rubyinstaller.org/downloads http://rubyinstaller.org/downloads
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

Install Calabash 安装Calabash
https://github.com/calabash/calabash-android/blob/master/documentation/installation.md https://github.com/calabash/calabash-android/blob/master/documentation/installation.md

Be sure PATHs are set correctly. 确保PATH设置正确。 Be sure to follow the instructions given on the web-pages mentioned above. 请务必按照上述网页上的说明进行操作。

Maybe your internet connection or the remote server were temporarily down, but it all should work. 也许您的互联网连接或远程服务器暂时关闭,但一切都应该有效。

If you haven't set the proxy environment variable , set it from command prompt by typing this command 如果尚未设置代理环境变量 ,请通过键入此命令从命令提示符进行设置

set HTTP_PROXY = http://your-proxy-address:your-port-number

Your command prompt maybe unaware of your proxy IP and port, which is the reason for this error. 您的命令提示符可能不知道您的代理IP和端口,这是此错误的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM