1. 程式人生 > >Selenium WebDriver 與 iOS 自動化測試 (做了一些初步的工具對比)

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.

-------------------------------
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/


-------------------------------
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