selenium 和 Appium 是怎么联系的?有什么关系?

版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010412719/article/details/47089883 https://blog.csdn.net/weixin_42139375/article/details/82902955

          一  、 selenium是专门做web端的自动化测试工具

 Selenium与其他测试工具相比,最大好处是:

Selenium 测试直接在浏览器中运行,就像真实用户所做的一样。Selenium 测试可以在 Windows、Linux 和 Macintosh上的 Internet Explorer、Chrome和 Firefox 中运行。其他测试工具都不能覆盖如此多的平台。使用 Selenium 和在浏览器中运行测试还有很多其他好处。

下面是主要的两大好处:

通过编写模仿用户操作的 Selenium 测试脚本,可以从终端用户的角度来测试应用程序。通过在不同浏览器中运行测试,更容易发现浏览器的不兼容性。Selenium 的核心,也称browser bot,是用 JavaScript 编写的。这使得测试脚本可以在受支持的浏览器中运行。browser bot 负责执行从测试脚本接收到的命令,测试脚本要么是用 HTML 的表布局编写的,要么是使用一种受支持的编程语言编写的。

Selenium 2.0适用于以下浏览器 [2]  :

  • Google Chrome

  • Internet Explorer 7, 8, 9, 10, 11

  • Firefox

  • Safari

  • Opera

  • HtmlUnit

  • phantomjs

  • Android

  • iOS

Selenium 1.0适用于以下浏览器:

Browser

Selenium IDE

Selenium Remote Control

Selenium Core

Selenium 2/Webdriver API

Firefox 10

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 9

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 8

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 7

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 6

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 5

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 4

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 3.6

Record and playback tests

Start browser, run tests

Run tests

Run tests

Firefox 3

Record and playback tests

Start browser, run tests

Run tests

not supported

IE 9

not supported

Start browser, run tests

Run tests

Run tests

IE 8

not supported

Start browser, run tests

Run tests

Run tests

IE 7

not supported

Start browser, run tests

Run tests

Run tests

Safari 3

not supported

Start browser, run tests

Run tests

not supported

Safari 2

not supported

Start browser, run tests

Run tests

not supported

Opera 9

not supported

Start browser, run tests

Run tests

Run tests

Opera 8

not supported

Start browser, run tests

Run tests

Run tests

Chrome

not supported

Start browser, run tests***

Run tests***

Run tests***

Others

not supported

Partial support possible*

Run tests**

not supported

Selenium是开源的web自动测试工具,免费,主要做功能测试
1.开源软件:源代码开放可以根据需要来增加工具的某些功能
2. 跨平台:linux 、windows 、mac
3. 核心功能:就是可以在多个浏览器上进行自动化测试
4. 多语言:Java、Python、C#、JavaScript、Ruby等
5. 成熟稳定:目前已经被google , 百度, 腾讯等公司广泛使用
6. 功能强大:能够实现类似商业工具的大部分功能,因为开源性,可实现定制化功能

             

二 、appium是手机app端的自动化,它继承了webdriver(也就是selenium 2)

          不过appium仍然需要通过selenium最后做测试工具,但是appium起到了一个连接手机端非常好的桥梁工作!可以连接到电脑上非常方便的调用selenium工具来做测试。

Selenium  1.0版包括三个部分,分别是Selenium IDE(插件,用于录屏,并转化代码)、Selenium Grid(扩展工具集)和Selenium RC(Remote Controller),其中最主要部分为Selenium RC。

但是Selenium与WebDriver合并后,Selenium2.0就等价为WebDriver了,所以学习Selenium2.0的话,相当于主要学习WebDriver API了。

3.0版本直到2016年才发布,该版本彻底移出了Selenium RC,对开发环境也有了限制(例如只支持jvav8以上版本,对不同的浏览器也有最低版本要求)。相对而言,2.0版的通用性更高。

猜你喜欢

转载自blog.csdn.net/weixin_42139375/article/details/82902955