OscarXie.net

关注质量与体验——电子商务与自动化测试

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  228 随笔 :: 0 文章 :: 134 评论 :: 34 引用
CKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt" vAlign=top width=140>

Item

WatiN

Selenium RC

Explorer Supported

Known work

Ø  IE 6 and IE 7

Known work

Ø  IE 6 and IE 7

Ø  Firefox 1.5.0 and 2.0

Ø  Opera 8.5.4 and 9.0.2

Should work

Ø  Firefox 0.8 to 2.0

Ø  Mozilla Suite 1.6+, 1.7+

Ø  Sea monkey 1.0

System supported

Known work

Ø  Windows XP and 2003

Known work

Ø  Windows XP and 2003

Ø  Windows 2000(need to install install reg.exein order to use IE)

Ø  Mac OS X

Ø  Linux

Language supported

Ø  C#

Ø  C#

Ø  Java

Ø  Perl

Ø  PHP

Ø  Python

Ø  Ruby

Test environment supported

Ø  Visual Studio 2005 Team System

Ø  Visual Studio 2005 Team System

AJAX

Supports AJAX website testing

l  Selenium Server communicates directly with the browser using AJAX (XmlHttpRequest)

l  The Selenium Server is great for testing complex AJAX-based web user interfaces under a Continuous Integration system

Get/Post requests

 

We can send commands directly to the Server using simple HTTP GET/POST requests

Https supported

 

Support for https

Javascrīpt Supported

Void Document.Runscrīpt(string)

l  We can write selenium RC tests in Javascrīpt with JsUnit.

l  it Allows a Selenium-enabled browser to run Javascrīpt on arbitrary websites.

HTML

Automates all major HTML elements and find elements by multiple attributes

 

HTML dialogs

Supports HTML dialogs (modal and modeless)

 

Frame

Supports frame (Cross domain) and iframes

 

Popup dialogs

Supports popup dialogs like alert, confirm, login etc

 

Screenshots

Support creating screenshots of web pages

 

 

 

对现有控件的兼容性不好。比如文件上传控件和日历控件就无法在Selenium RC中捕捉
2.
不支持https连接方式??

http://bbs.51testing.com/thread-84131-1-6.html

Developing Info

Item

WatiN

Selenium RC

Developing Language

Ø  C#

Ø  Java and so on

Methods Example

Item

WatiN Example

Selenium RC Example

Set  element

event

Document.button(Find.ById(btnG”)).click()

DefaultSelenium.Type(“q”,”hello world”)

Get element attributes

Document.button (Find.ById(btnG”)).Style. Height

DefaultSelenium.GetElementHeight(“q”)

especial methods

                             

Then we can’t hanle the time used for pages loading.

                           ===

 

 

 

Ø  Link[1].Click()

Ø  Link(Find.ByIndex(1)).Click()

We can use these two methods to click the links that the value is null.

Ø  WaitForPageToLoad(“5000”)

(if we want to go to another page and get the elements in the new page, we have to use the method, or we will in the old page.)

 

 

==    We can’t find the links that the value is null

OscarXie.net

关注质量与体验——电子商务与自动化测试
http://www.cnblogs.com/oscarxie/

posted on 2008-07-12 12:51 oscarxie 阅读(609) 评论(2)  编辑 收藏 网摘 所属分类: 自动化测试框架

评论

#1楼 2008-07-12 13:53 Jackei      
WatiN(以及WatiR/WatiJ) 和 Selenium 都可以归属于自动化框架中的 web 驱动层,但从实际使用来看,WatiX 家族的框架更容易被扩展一些。
  回复  引用  查看    

#2楼[楼主] 2008-07-12 13:58 oscarxie      
@Jackei
WatiX会好用些,可惜最近换了工作,以后要开源了,从此Python+Selenium,所以以后Selenium要多向你讨教了。

  回复  引用  查看    

发表评论

昵称: [登录] [注册]

主页:

邮箱:(仅博主可见)

评论内容:

  登录  注册

[使用Ctrl+Enter键快速提交评论]

0 1241134 tSWf6NX51UA=



相关文章:

相关链接: