Watir資源列表【轉】

 

Watir簡介php

"Watir" (發音與 water相近) 全寫是 "Web Application Testing in Ruby"。Watir是一款用Ruby腳本語言驅動瀏覽器的自動化測試工具。Wait是基於Web的自動化測試開發的工具箱。html

 

Watir對什麼有效?web

Watir能夠驅動那些做爲Html頁面被髮送到Web瀏覽器端的應用程序。ajax

Watir對下列組件不起做用:ActiveX、Java Applets、Macromedia Flash或者其餘的應用程序插件。編程

判斷Watir是否可用的方法:在頁面上點擊右鍵-查看頁面源代碼,若是能夠看到Html源代碼,就說明頁面上的對象能夠被Watir識別,來實現自動化。api

 

使用的前提條件瀏覽器

要使用Watir,至少要掌握如下內容ruby

1. HTML:app

2. 編程的基本常識,如變量的定義與使用,基本的控制語句,如If、for等ide

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

相關文章
相關標籤/搜索