给Selenium做减法(翻译)

上一篇 / 下一篇  2012-03-19 22:46:34 / 个人分类:Selenium

  

                                                 给Selenium做减法

&| nzlj4m0

---Java语言调用Selenium APIJunit的教程指导51Testing软件测试网f!O V eC'x/} T

        51Testing软件测试网1hnQ4t9^x$G`

引言51Testing软件测试网` O+p@kG8Y*a

对于一些人而言,看一些web方面的Selenium-RCJava代码,没有什么作用,因为他们不知道怎么样去使用它。他们不知道:

zb"I3b^-P:NX.E0

把代码放到哪里

)T_!KG4SV@Z|0

包是什么东西

s3a_(k"n _ ?%bt0

怎么运行代码

!X6Zo6T Gs0t8L.F0

怎么样安装IDE51Testing软件测试网*`N5gG.yR eV)m7q

J#p!r5~ eG0

因此我现在指导大家,使用简单的步骤、目录热点、用Java语言实现Selenium测试程序的基本知识的支撑。

r)j]1xA;}gp0

一旦你有了这些基础,我们继续去探索Selenium API命令和自动化HTM页面、窗体以及用JavaScript实现web应用程序的自动化。51Testing软件测试网i"IF5Ah/\.IK

我假设大家以前没有Java自动化测试方面的知识。

]/Cr z y4lw0

本书覆盖Selenium 1.0.3,是Selenium成熟和稳定性版本。Selenium 1.0.3版本很大程度上会保持稳定和不变。比较新的Selenium 2.0它版本依然处于大规模开发中,因此,我们在本书的最后一章节“Selenium的未来”会谈到Selenium 2..051Testing软件测试网U/_W4T|5w

要明白Selenium 1.0.3不仅仅有使web应用程序自动化的能力。事实上Selenium 2.0支持Selenium 1.0.X的API。所以,你现在在本书学到的东西,在Selenium成熟的时候也可以用。

?D6b,k.M$vf0

我选择使用Java作为编程语言,因为Selenium是用Java语言实现的(因此,如果你了解Java的话,你可以更快的熟悉Selenium)。Java也是成熟的语言,IDEs(集成开发环境)可以很好的支持JavaIDEs可以使初学者编码更为容易。

.KjZ-d6b3q]VgEO0

                                         by 南柯一梦51Testing软件测试网c|&@7rUSg

                                         译于2012年3月19日夜51Testing软件测试网|5D(p e:y q'w%^n7m

 51Testing软件测试网` B(Zy d&\Q+B$jw

原文51Testing软件测试网@+An0Db)D5I

Selenium Simplified51Testing软件测试网8S3ARb)|!Nzd"F
A tutorial guide to using the Selenium API in Java with JUnit
x.sgm:~0Alan Richardson

5vd:s6r%N0

 51Testing软件测试网X%BWSC8S

Introduction51Testing软件测试网Z)Y$N [`8y.X
For some people, seeing some Java code for Selenium-RC on the web, does not help as they don't51Testing软件测试网E2B$fO&m!u"d t D
know how to use it. They don't know:
-TP0{kG(y1}0• where to put the code,51Testing软件测试网6s~ C ~.Up7H
• what a package is,51Testing软件测试网{e#{({r2}t
• how to run the code,
1M H(\w0I(O)V]:{S*N0• how to install an IDE51Testing软件测试网&~~4eNF6d
So in this guide I present, in simple steps and supported by screens hots, the fundamental knowledge required to program Selenium tests in Java.
|lmMYn0Once you have the basics, we move on to exploring common Selenium API commands and how to automate HTML pages, Forms and JavaScript. enabled web applications.
}a*BQp+y2Z0I assume no previous knowledge of Java, or Automated Testing.
C|8A O)y,C0This book covers Selenium 1.0.3 the mature and stable version of Selenium. The Selenium 1.0.3 branch is likely to remain stable and static. The newer version of Selenium – Selenium 2.0 is still undergoing heavy development, so we cover this in the “The Future of Selenium” Chapter towards the end of the book.51Testing软件测试网V#Z7Y@i9TF
Be assured that Selenium 1.0.3 is more than capable of automating your web applications. Indeed Selenium 2.0 supports the API used in Selenium 1.0.x, so everything you learn here, you can use in Selenium 2.0 when it matures.
J0f;b(]#R-a4a0\*[ ]0I have chosen Java as the programming language because it is the language that the Selenium Server is written in (so by understanding Java you can understand Selenium more readily). It is also mature and very well supported by IDEs (Integrated Development Environments) which make coding simple for a beginner.
51Testing软件测试网^!}h7YBu-W6w


TAG:

 

评分:0

我来说两句

Open Toolbar