码迷,mamicode.com
首页 > 其他好文 > 详细

搭建cucumber测试环境

时间:2014-12-02 17:40:11      阅读:416      评论:0      收藏:0      [点我收藏+]

标签:des   style   http   io   ar   color   sp   for   on   

1、到ruby官网下载ruby,并安装

2、下载DevKit,并解压ruby安装目录的任意目录下,eg.kit目录下分别运行

ruby dk.rb init
ruby dk.rb install


3、安装所需要的gem包

1)安装之前会遇到的问题

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygem
s.org/specs.4.8.gz)

解决办法,参考网站

This assumes your have already installed the Rails Installer for Windows.

Download the ruby script to your Desktop folder fromhttps://gist.github.com/raw/867550/win_fetch_cacerts.rb. Then in your command prompt, execute the ruby script:

ruby "%USERPROFILE%\Desktop\win_fetch_cacerts.rb"

Now make ruby aware of your certificate authority bundle by setting SSL_CERT_FILE. To set this in your current command prompt session, type:

set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem
gem update --system
gem install rspec --no-ri --no-rdoc
gem install win32console --no-ri --no-rdoc
gem install watir-webdriver --no-ri --no-rdoc
gem install cucumber --no-ri --no-rdoc
  4 .这样就安装成功了,可以用下面命令查看Cucumber的版本

cucumber --version




 

搭建cucumber测试环境

标签:des   style   http   io   ar   color   sp   for   on   

原文地址:http://my.oschina.net/liyonglee/blog/351500

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!