既然选择远方,便只顾风雨兼程……

两个WEB自动化测试工具比较 WatiN & Selenium RC

上一篇 / 下一篇  2008-04-06 16:35:02 / 个人分类:测试职业历程

Item

[R K*^8t;c0

WatiN

2p+np&{5cKcF0H-L0

Selenium RC

KhKj\2~0

Explorer Supported51Testing软件测试网2p{/@J"Y3T w6b

Known work

6Nik0A)bo'Q1G"HV0

Ø IE 6 and IE 751Testing软件测试网7t\Dt9Uk*s

Known work

0H}3U;}0Yi0

Ø IE 6 and IE 7

V[)E?_'g(@0

Ø Firefox 1.5.0 and 2.0

-u`&z$g.a&n,z0

Ø Opera 8.5.4 and 9.0.2

A e"^-n$U&lB0

Should work

@Fu qv e0

Ø Firefox 0.8 to 2.0

~,fD9f3x0

Ø Mozilla Suite 1.6+, 1.7+

0]0S*yZ9MLG J&Wk0

Ø Sea monkey 1.051Testing软件测试网)?%M|E6`"C

System supported51Testing软件测试网/k ]1`\ T

Known work

K x1J{gV0y0

Ø Windows XP and 200351Testing软件测试网3oj:nm Ao.F

Known work51Testing软件测试网1`v|1J)t-FYnp

Ø Windows XP and 2003

6~:pQFK,md0

Ø Windows 2000(need to installinstall reg.exein order to use IE)51Testing软件测试网N8U^ ji)S

Ø Mac OS X

MCF P.`H+U0

Ø Linux51Testing软件测试网-Jx0v%]r Rm

Language supported

eIg Pqt-AS:WEw0

Ø C#51Testing软件测试网+u#n,{"N2b

Ø C#

R NQ.F D8@eiX5b0

Ø Java51Testing软件测试网SMg1{RR$?.i\e

Ø Perl51Testing软件测试网3G,wqA { y `

Ø PHP51Testing软件测试网 yt#o fbHB6\

Ø Python

o7co.X W;e"a#O(`|0

Ø Ruby51Testing软件测试网%X E4@X$F?XFg

Test environment supported51Testing软件测试网*Ld g1Qn

Ø Visual Studio 2005 Team System

`!M0mg-Z]0

Ø Visual Studio 2005 Team System

;o7yr nNSPpz B0

AJAX

{:H g}$?-`"l&nDK0

Supports AJAX website testing

@4z$f/u.C:D0

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

A.f5}_6Zl0

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

:q`%e'o;@L0~MwB0

Get/Post requests51Testing软件测试网:Mh9X,V%}*eF

 51Testing软件测试网X.o [lP v8yZ

We can send commands directly to the Server using simple HTTP GET/POST requests51Testing软件测试网D.K#M&s2J$?)E@1_

Https supported

9Zvb2b2rU%p0

 51Testing软件测试网!A/V e%d!@x"c"U*c

Support for https51Testing软件测试网Q\5X X*Vw,QT"@

Javascrīpt Supported51Testing软件测试网 S.nX*q iV4f7U

Void Document.Runscrīpt(string)51Testing软件测试网L P)~ Ee6i

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

vA(Xpr0

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

h)f H0R O"oC0

HTML51Testing软件测试网f+T"J],h*N8x

Automates all major HTML elements and find elements by multiple attributes51Testing软件测试网[mf$U7@ z:O

 51Testing软件测试网*[MJ.};so

HTML dialogs51Testing软件测试网B!f/O*{KA6l0m8LL

Supports HTML dialogs (modal and modeless)51Testing软件测试网6z'T/D;@8U z/D%s

 

&h6}r4\@4b'{0

Frame51Testing软件测试网/h vs _!V0k!E

Supports frame (Cross domain) and iframes

eGH-Gp0

 

ZGMU(G6JZ0

Popup dialogs51Testing软件测试网 Q;R HJX/s

Supports popup dialogs like alert, confirm, login etc

B d-H\-H;^J0

 51Testing软件测试网s/Bmf@ KB

Screenshots51Testing软件测试网!E1? d~zT/~

Support creating screenshots of web pages

N4LoUs%^0

 51Testing软件测试网;HI M+[/O5yO

 

EJ3ZBe9wJ?/b0

 51Testing软件测试网)f)H1w2jU+D

对现有控件的兼容性不好。比如文件上传控件和日历控件就无法在Selenium RC中捕捉
l}tC-}n/P,w02.
不支持https连接方式??

&]/q&o7Or0

http://bbs.51testing.com/thread-84131-1-6.html51Testing软件测试网yL-n\#M6kRf

Developing Info

Item51Testing软件测试网"`j]3Cr%B

WatiN51Testing软件测试网v!wR [DA&|cU"I.T

Selenium RC51Testing软件测试网}q.@w)f!I[#d

Developing Language

[/lA"{u4]wq0

Ø C#51Testing软件测试网hTB\!O$n6T)n(L

Ø Java and so on51Testing软件测试网#k.j4}E5|G+i

Methods Example

Item

}^9Y U&`l0

WatiN Example

2P?u&| Q%Z N0

Selenium RC Example

iBpX)AF]-fx o:r0

Set element51Testing软件测试网 f4W8?VOa+S$B's.c#r!J2_

event

1V|Su wNL^7iO+W0

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

h9D+E!gSf0d0

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

S-\*U y/z,teE0

Get element attributes

2[kR3}|%i)n0

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

{LL;\T5p]0

DefaultSelenium.GetElementHeight(“q”)

?7zu!bGx@ t0

especial methods51Testing软件测试网#f3XA w;N u._;U7g

                             51Testing软件测试网'I8~ IF%?6~G O

Then we can’t hanle the time used for pages loading.51Testing软件测试网%d??&l({NU t0U8op7ZH

                          ===

0]`p'f6kG7qI$]0

 

A$Q#x&[*P0

 

$x|8Ya`.e5u0

 51Testing软件测试网#L:A%EZJ V0Nkpp O

Ø Link[1].Click()

T [ igHz0

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

&^!@)x&_C ?0

We can use these two methods to click the links that the value is null.51Testing软件测试网%aU.s)D~Y

Ø WaitForPageToLoad(“5000”)51Testing软件测试网OD4n+`{$f&?

(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.)

5a(I-sF6J0

 51Testing软件测试网.n y nL!b!\e$E

 

"^Xf` O:l iZy{)V0

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

(CiZ,P.x]0

TAG: web 自动化测试 WatiN Selenium RC 测试

v_dozhan的个人空间 引用 删除 v_dozhan   /   2011-10-18 14:31:00
5
 

评分:0

我来说两句

Open Toolbar