Watir资源列表

简介:

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



本文转自贺满博客园博客,原文链接:http://www.cnblogs.com/puresoul/archive/2012/03/07/2383099.html ,如需转载请自行联系原作者。


目录
相关文章
|
Web App开发 JavaScript 前端开发
Python 自动化 - 浏览器chrome打开F12开发者工具自动Paused in debugger调试导致无法查看网站资源问题原因及解决方法,javascript反调试问题处理实例演示
Python 自动化 - 浏览器chrome打开F12开发者工具自动Paused in debugger调试导致无法查看网站资源问题原因及解决方法,javascript反调试问题处理实例演示
518 0
Python 自动化 - 浏览器chrome打开F12开发者工具自动Paused in debugger调试导致无法查看网站资源问题原因及解决方法,javascript反调试问题处理实例演示
|
6月前
|
XML JavaScript 前端开发
SAP UI5 本地开发如何实现 XML 和 JavaScript 代码的自动完成和嵌入式 API 文档自动显示试读版
SAP UI5 本地开发如何实现 XML 和 JavaScript 代码的自动完成和嵌入式 API 文档自动显示试读版
65 0
|
3月前
|
开发框架 .NET C#
无标题自用临时文档.C# | python交互
无标题自用临时文档.C# | python交互
93 0
|
9月前
|
Web App开发 JSON 监控
Chrome浏览器扩展开发之自动化操作页面
Chrome浏览器扩展开发之自动化操作页面
236 0
|
XML 自然语言处理 JavaScript
SAP UI5 本地开发如何实现 XML 和 JavaScript 代码的自动完成和嵌入式 API 文档自动显示
SAP UI5 本地开发如何实现 XML 和 JavaScript 代码的自动完成和嵌入式 API 文档自动显示
|
存储 API
Revit API 修改项目文档中族参数的几个要点
Revit API 修改项目文档中族参数的几个要点
Revit API 修改项目文档中族参数的几个要点
|
Web App开发 JavaScript 开发者
Python+selenium 自动化-chrome页面静止、冻结技术,获取web动态页面的Xpath方法,查看浏览器动态dom节点
Python+selenium 自动化-chrome页面静止、冻结技术,获取web动态页面的Xpath方法,查看浏览器动态dom节点
431 0
Python+selenium 自动化-chrome页面静止、冻结技术,获取web动态页面的Xpath方法,查看浏览器动态dom节点
Python+selenium 自动化-切换窗口页签、切换iframe框架。确定页面是否包含iframe方法。
Python+selenium 自动化-切换窗口页签、切换iframe框架。确定页面是否包含iframe方法。
481 0
|
程序员 开发工具 Android开发

相关实验场景

更多