Watir资源列表

  1. 云栖社区>
  2. 博客>
  3. 正文

Watir资源列表

贺满 2012-03-07 10:55:00 浏览491
展开阅读全文

Watir简介

"Watir" (发音与 water相近) 全写是 "Web Application Testing in Ruby"。Watir是一款用Ruby脚本语言驱动浏览器的自动化测试工具。Wait是基于Web的自动化测试开发的工具箱。

 

Watir对什么有效?

Watir可以驱动那些作为Html页面被发送到Web浏览器端的应用程序。

Watir对下列组件不起作用:ActiveX、Java Applets、Macromedia Flash或者其他的应用程序插件。

判断Watir是否可用的方法:在页面上点击右键-查看页面源代码,如果可以看到Html源代码,就说明页面上的对象可以被Watir识别,来实现自动化。

 

使用的前提条件

要使用Watir,至少要掌握以下内容

1. HTML:

2. 编程的基本常识,如变量的定义与使用,基本的控制语句,如If、for等

3. Ruby:Ruby的基本常识。

4. IE Development或是其他类似的浏览器辅助工具,在以后的开发中,将非常有效的帮你识别页面对象的属性。

 

开源、下载:

http://rubyforge.org/projects/wtr/

 

watir学习手册:

http://www.docin.com/p-64858446.html

 

博客、论坛:

http://blog.csdn.net/Testing_is_believing/category/647265.aspx

http://swik.net/Watir+Programming
http://www.pragprog.com/ #很多好的源码哦
http://docs.rubygems.org/ #rubygems
http://www.fxruby.org/  #fxruby
http://groups.google.com/group/watir-general/topics #google watir讨论组
http://ruby.nanshapo.com/weeks/2007-29.html
http://www.gotapi.com/rubyrails #API比较全
http://www.ruby-forum.com/forum/4 #ruby的论坛
http://navigation-china.com/ExcelVBA/Main.htm #excel的API函数
http://members.shaw.ca/paul_rogers/watir_tests/ #练习场所
http://www.kuqin.com/rubycndocument/man/index.html #ruby参考手册
http://www.ruby-doc.org/core/ #ruby API
http://wtr.rubyforge.org/rdoc/ #watir的api
http://wiki.openqa.org/display/WTR/Project+Home #watir教程
http://www.w3school.com.cn/  
http://www.rubyidea.com/bbs/
http://okruby.com/   #有很多教程
http://www.docin.com/app/searchnew/fpg?keyword=ruby #很多在线资料 

 

 

 

watir入门视频: 

 http://showmedo.com/videotutorials/series?name=xHF6O1WlE

 

关于各种弹出窗口的处理方法:

http://wiki.openqa.org/display/WTR/Pop+Ups

 

各种等待处理方法:

How to wait with watir

http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir

 

如何右键单击页面元素:

Right Click an Element

http://wiki.openqa.org/display/WTR/Right+Click+an+Element

 

watir处理简单ajax的例子:

Simple Ajax examples

http://wiki.openqa.org/display/WTR/Simple+Ajax+examples 

 

使用Ruby、Watir和Sikuli测试Flash、AJAX、Popup等 

Automating Flash, AJAX, Popups and more using Ruby, Watir and Sikuli

http://www.software-testing.com.au/blog/2010/08/16/automating-flash-ajax-popups-and-more-using-ruby-watir-and-sikuli/

 

 

 

 

WatiN - Watir的.NET版:

http://watin.sourceforge.net/

Welcome at the WatiN (pronounced as What-in) website. Inspired  by Watir development of WatiN started in December 2005 to make a similar kind of Web Application Testing possible for the .Net languages. Since then WatiN has grown into an easy to use, feature rich and stable framework. WatiN is developed in C# and aims to bring you an easy way to automate your tests with Internet Explorer and FireFox using .Net.

 

WatiN 的脚本录制器 - WatiN Test Recorder:

http://watintestrecord.sourceforge.net/ 

 

QAliber提供了WatiN插件:

http://www.qaliber.net/Wiki/index.php?title=WatinN_Plug-in

 

 

 

 watij - watir的Java版:

http://watij.com/ 

Watij (pronounced wattage) stands for Web Application Testing in Java. Watij is a Java API created to allow for the automation of web applications. Based on the simplicity of Watir and enhanced by the power of Java, Watij automates functional testing of web applications through a real browser.

Watij’s new WebSpec API supports the following browsers on Windows, Mac, and Linux:

  • Internet Explorer
  • Mozilla
  • Safari

You can also use JRuby!  Watij’s WebSpec API provides a JRuby extension so you get the power of Ruby and Java combined.

 

 

转自:http://www.cnblogs.com/testware/archive/2010/07/17/1779914.html

网友评论

登录后评论
0/500
评论
贺满
+ 关注