Selenium WebDriver 与 iOS 自动化测试 (做了一些初步的工具对比)
2013-10-08 16:34
525 查看
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
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
相关文章推荐
- IOS开发之格式化日期时间
- iOS 定位坐标不准确的相关整理及解决方案汇总
- ios7下评论的链接
- iOS 使用 Core Plot 绘制统计图表入门
- xcode5 ios7升级后的一系列问题解决
- iOS开发中不要使用相对路径
- ios 开发中出现的 pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
- [ios2] 利用钥匙串,在应用里保存用户密码的方法 【转】
- iOS ios5 以下的横屏代码
- IOS 从Resource文件夹下Copy文件到沙盒
- IOS调试技巧:当程序崩溃的时候怎么办 iphone IOS
- iOS 7用户界面过渡指南
- nagios-3种报警方式–声音–email/邮件—短信
- IOS国际化取值问题
- iOS 7激活出错怎么办?
- ios中NSUserDefault的使用
- iOS平台UDID方案比较
- IOS读取文件类和常用方法
- IOS中定时器NSTimer的开启与关闭
- 年底iOS 6.1.3/6.1.4 将完美越狱