力香: 守护!自在! 读书!

导航

环境搭建

2016-09-02 Ruby Enviroment Install
1.Install Ruby
http://rubyinstaller.org/downloads/
 
 
 
 
 
 
 
 
===============================================================================
http://www.ibm.com/developerworks/agile/library/a-automating-ria/index.html
 
 
http://www.openqa.org/ 
http://www.cnblogs.com/sdet/p/3633623.html 
http://www.cnblogs.com/sdet/tag/selenium/ 
http://www.ibm.com/developerworks/cn/java/wa-selenium-ajax/
 http://www.itnose.net/detail/6440524.html
 
2016-02-22 晚, 没有成功,继续加油!
下载软件好慢
 http://www.cnblogs.com/rmb-mylove123/p/3202023.html
 
http://www.cnblogs.com/sdet/tag/selenium/
 
 
http://rubyinstaller.org/
 
http://www.tuicool.com/articles/N3MVJf
 
 http://www.tuicool.com/articles/f6JZnue

Ruby on Rails 的网站和书籍收集:

  • Main Ruby Site  – Ruby 官方站点。查找所有文件的完整列表,教程,新闻等。.   
  • Ruby Documentation  – Ruby文档的网站。   
  • Ruby Installation  – 一键式Ruby安装在Windows系统。   
  • RubyForge  – 开源项目库。   
  • Ruby on Rails  – Ruby on Rails的官方网站。
  • RubyGems  – RubyGem和其他文件的下载链接。   
  • Rails APIs  – 对Rails的API的完整列表   
  • Rails Conf  – RailsConf上,由Ruby 和O’Reilly Media公司共同提出,是全球最大的致力于一切Rails的官方发布会。   
  • Ruby Central  – Ruby Central 是一家501(c)(3)免税组织,致力于对Ruby的支持和拥护。   
  • MySQL Homepage  – 在这里可以下载最新的MySQL版本,MySQL最新消息。邮件列表也是一个很好的资源,使用MySQL构建动态网站

 

 

http://www.mysql.com/

 Windows建立Cucumber和Ruby测试环境

 

有效动作::::::::::::::

http://rubyinstaller.org/downloads/


 

 

1.安装前的准备:

a) 确保网络畅通

b) 酝酿情绪,做好打持久战的准备

 

2.安装RubyInstaller

a) 可到这个网站去下载rubyinstaller:  http://rubyforge.org/projects/rubyinstaller

b) 注意:安装目录结构不要太深

c) 安装完成后在命令行运行: ruby –v 可以查看是否安装成功

 

3.安装DevKit

a)下载地址同rubyinstaller(http://rubyforge.org/projects/rubyinstaller), 这个地址下载的DevKit我试过了,运行ruby dk.rb init时会报错。

b) 另一个下载地址:http://rubyinstaller.org/downloads/

c) 如果还不行就用这个: http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe

d) 注意:要先安装Ruby

e) 步骤:

            i.   把下载下来的压缩包解压到Ruby的安装目录

            ii.  在命令行下转到DevKit的目录

            iii.  运行:ruby dk.rb init

            iv.  运行:ruby dk.rb install

   如果安装过程中有什么问题,可以参考下面的两个网址:

         https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

     http://hi.baidu.com/nnoo/blog/item/c1b4f7031ec4be6a3912bbef.html

 

4.安装Cucumber

a) 运行:gem install cucumber

b) 运行:gem install watir-webdriver

c) 运行:gem install rspec

 

$ gem sources --remove http://rubygems.org/ 
$ gem sources -a http://ruby.taobao.org/ 
$ gem sources -l 

$ gem install cucumber

$ gem install jsonpath

$ gem install selenium-webdriver

 

 

 

5. 搞定,开始运行你的Cucumber脚本吧.

 

下载代码

 

https://pragprog.com/titles/hwcuc/source_code

 

 

制作自己的gem 文件

 

http://blog.csdn.net/yangcs2009/article/details/42262073

http://www.cnblogs.com/watir/archive/2009/06/21/1507805.html

 

http://guides.rubyonrails.org/generators.html

http://www.360doc.com/content/12/0426/11/33776_206641880.shtml

 http://www.cnblogs.com/candle806/archive/2013/06/04/3117415.html

 

驱动下载

 

http://docs.seleniumhq.org/download/

 

 

http://www.cnblogs.com/ToDoToTry/archive/2011/09/10/2173391.html

 

 

http://benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories.html

 

http://benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories.html

 

 

 gem list

posted on 2016-02-23 14:48  力香  阅读(139)  评论(0编辑  收藏  举报