标签:
1、首先需要下载RubyInstaller.exe程序(下载地址随便都能找到)。
如:rubyinstaller-2.2.2-x64.exe
安装好Ruby后,需要更新Gems
gem update --system
结果大家看到了被墙了
只能更换下RubyGems 镜像
感谢淘宝 http://ruby.taobao.org
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
再来RubyGems
gem update --system
2、安装解压缩程序(这个好像没限制,我用的是好压别的不知道行不行)。
如:好压 或者 7-zip
3、安装DevKit工具,用以模拟Linux下的编译环境。
如:DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install
过程如图:
4、安装Selenium 的 gem 包。
gem install filepath\selenium\gems\bundler-1.7.12.gem
gem install filepath\selenium\gems\multi_json-1.10.1.gem
gem install filepath\selenium\gems\json-1.8.2.gem
gem install filepath\selenium\gems\minitest-5.5.1.gem
gem install filepath\selenium\gems\ffi-1.9.6.gem
gem install filepath\selenium\gems\childprocess-0.5.5.gem
gem install filepath\selenium\gems\hoe-3.13.0.gem
gem install filepath\selenium\gems\hpricot-0.8.6.gem
gem install filepath\selenium\gems\rubyzip-1.1.6.gem
gem install filepath\selenium\gems\sdoc-0.4.1.gem
gem install filepath\selenium\gems\rdiscount-2.1.8.gem
gem install filepath\selenium\gems\rdoc-4.2.0.gem
gem install filepath\selenium\gems\mustache-1.0.0.gem
gem install filepath\selenium\gems\ronn-0.7.3.gem
gem install filepath\selenium\gems\rubygems-tasks-0.2.4.gem
gem install filepath\selenium\gems\rake-10.4.2.gem
gem install filepath\selenium\gems\rake-compiler-0.9.5.gem
gem install filepath\selenium\gems\permutation-0.1.8.gem
gem install filepath\selenium\gems\websocket-1.2.1.gem
gem install filepath\selenium\gems\selenium-webdriver-2.44.0.gem
5、安装 Rspec 的 gem 包。
gem install filepath\rspec\gems\builder-3.2.2.gem
gem install filepath\rspec\gems\multi_test-0.1.1.gem
gem install filepath\rspec\gems\diff-lcs-1.2.5.gem
gem install filepath\rspec\gems\gherkin-2.12.2.gem
gem install filepath\rspec\gems\cucumber-1.3.18.gem
gem install filepath\rspec\gems\rspec-support-3.1.2.gem
gem install filepath\rspec\gems\rspec-expectations-3.1.2.gem
gem install filepath\rspec\gems\aruba-0.6.2.gem
gem install filepath\rspec\gems\rspec-core-3.1.7.gem
gem install filepath\rspec\gems\rspec-mocks-3.1.3.gem
gem install filepath\rspec\gems\rspec-3.1.0.gem
6、查看
gem list
Ruby(Selenium / Rspec)在Windows 8_64上安装步骤
标签:
原文地址:http://www.cnblogs.com/wozijisun/p/4618350.html