51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1691|回复: 0
打印 上一主题 下一主题

windows 平台安装 cucumber

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2019-3-1 15:58:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1. install rubyinstaller
  1. ruby -v
复制代码

测试是否安装成功


2. config proxy
  1. vi ~/.gemrc
复制代码
  1. gem: --http-proxy http://[ip]:[port]
复制代码

3. validation ssl version
  1. $ ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
  2. "OpenSSL 1.0.1l 15 Jan 2015"
复制代码

4. gem install cucumber,rspec,selenium etc...
  1. gem install cucumber -v 1.3.13
  2.   gem install rspec
  3.   gem install selenium-webdriver
  4.   gem install watir-webdriver
  5.   gem install watir
复制代码

4.1 遇到的坑
  1. C:\>gem install cucumber
  2. Fetching: builder-3.2.2.gem (100%)
  3. Successfully installed builder-3.2.2
  4. Fetching: diff-lcs-1.2.4.gem (100%)
  5. Successfully installed diff-lcs-1.2.4
  6. Fetching: multi_json-1.7.6.gem (100%)
  7. Successfully installed multi_json-1.7.6
  8. Fetching: gherkin-2.12.0.gem (100%)
  9. ERROR:  Error installing cucumber:
  10.         The 'gherkin' native gem requires installed build tools.

  11. Please update your PATH to include build tools or download the DevKit
  12. from 'http://rubyinstaller.org/downloads' and follow the instructions
  13. at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
复制代码

4.2 Download DevKit
  1. <span pingfang="" sc",="" stheiti,="" "lantinghei="" "open="" sans",="" arial,="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" simsun,="" sans-serif;="" font-size:="" 16px;"="">uncompress </span><span style="box-sizing: inherit;">DevKit</span><span pingfang="" sc",="" stheiti,="" "lantinghei="" "open="" sans",="" arial,="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" simsun,="" sans-serif;="" font-size:="" 16px;"=""> to </span><span style="box-sizing: inherit;">c:Ruby\DevKit</span>
复制代码
if still got error msg similar like :
  1. Could not find a valid gem 'rails' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/specs.4.8.gz)
复制代码
To solve this issue you should download ca from gemsearch,copy it into C:\Ruby22-x64\lib\ruby\2.2.0\rubygems\ssl_certs\

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-22 23:19 , Processed in 0.065742 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表