Selenium WebDriver与iOS自动化测试(做了一些初步的工具对比)

时间:14-06-17 栏目:移动平台测试 作者:乐测网 评论:0 点击: 1,707 次

Selenium官方Driver-IPhoneDriver:
http://code.google.com/p/selenium/wiki/IPhoneDriver
If you are looking to use WebDriver with iOS mobile Safari and are currently testing only on simulators please have

a look at ios-driver or appium
Both of these projects are much better implementations of WebDriver for iOS, the only reason it is not a wholesale

replacement now is that they can not run on real devices for mobile safari right now.
iPhone Driver (DEPRECATED)
The iphone driver allows testing on a UIWebView (a webkit browser accessible for 3rd party applications) on the

iphone. It works through the use of an iphone application running on your iphone, ipod touch or iphone simulator.
支持真机测试
在真机或模拟器中安装iWebDriver,与PC通过HTTP连接通讯
仅支持iOS Mobile Safari浏览器测试
---------------------------
nativedriver
Native application GUI automation with extended WebDriver API
http://code.google.com/p/nativedriver/
http://code.google.com/p/nativedriver/wiki/GettingStartedIOS
NativeDriver is an implementation of the WebDriver API which drives of the UI of a native application rather than a

web application.
We plan to make NativeDriver a multi-platform tool. We are currently working on the following versions:
Android - usable and in the SVN repository.
iOS - usable and in the SVN repository.
Windows - Experimental and prototype phase
WebDriver is used to do functional testing of web applications on many platforms and browsers. By applying

WebDriver and all related technologies to native applications, we hope to bridge the gap and alleviate the

impedance mismatch between Web Applications and Native Applications.

不支持真机测试?
仅支持Native应用程序的测试
使用UIAutomation?
需要AUT加入NativeDriver库的链接
http://code.google.com/p/nativedriver/wiki/IOSMakeAnAppTestable
支持Android、iOS、Windows(试验阶段)

-------------------------------
Appium
Appium is an open source test automation framework for use with native and hybrid mobile apps.
It drives iOS and Android apps using the WebDriver JSON wire protocol.
http://appium.io/

初步支持真机测试
https://github.com/appium/appium/wiki/Running-Appium-on-Real-Devices
支持Native、hybrid mobile apps
使用UIAutomation
不需要加入额外的库
支持iOS、Android
-------------------------------
ios-driver
IOS automation for native, hybrid and mobile web.
http://ios-driver.github.io/ios-driver/

Test any IOS native, hybrid, or mobile web application using the Selenium / Webdriver API. IOS automation is as

easy as automation for a browser, due to reuse of the well known API. You can reuse the helper classes from your

web tests to i.e. create data, and follow the same design patterns you're used to (Page Object etc.).
High level features :
Implements the JSON wire protocol
Runs on emulators and devices
Can be run as a regular node in a Selenium Grid
Can be used in an existing Selenium Grid to manage device / simulator farm
First class support for localized native apps ( 1 test works for all the localized versions )
No need to change the source
No need to jailbreak the device
No ios-driver app to install on the phone

Scaling
ios-driver has been built with scaling in mind. GUI based tests are slow by nature slow and if run sequentially

take too long to provide fast feedback. By following the webdriver protocol, ios-driver can be used as a Selenium

grid node, and the tests can be run in parallel on the same architecture as the one already running the web tests.
支持真机测试
支持Native、hybrid、Mobile Web
使用UIAutomation
不需要加入额外的库
仅支持iOS

Selenium WebDriver与iOS自动化测试(做了一些初步的工具对比):等您坐沙发呢!

发表评论(需填写下方的验证回答,无用户名的评论将视为匿名发表,您也可以登陆或注册后再发表评论)

您必须 [ 登录 ] 才能发表留言!

@关注乐测网

-----==== 本站公告 ====-----
1.本站是目前唯一能支持智能手机平板电脑访问的软件测试技术网站.
2.具体访问方法请参考本站的手机访问说明,或直接点击以下链接:

→点击这里打开手机平板访问说明←

    智能手机平板电脑访问方法

1.用手机浏览器输入本站网址http://www.test666.com就可直接访问
2.微信、QQ、微博或手机浏览器的二维码扫描功能扫描以下二维码图

标签云球