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

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


 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值