robotframework-ioslibrary is a Robot Framework test library for all your iOS automation needs.
It uses Calabash iOS Server to communicate with your instrumented iOS application similar to how Selenium WebDriver talks to your web browser.
To install, just fetch the latest version from PyPI:.
pip install --upgrade robotframework-ioslibrary
To prepare your iOS app look at <https://github.com/calabash/calabash-ios#installation>
To get full simulator support, e.g.: for testing in app purchases you have to install waxsim.
Download the source from:
https://github.com/jonathanpenn/WaxSim/tarball/93d4dd1d137609eb2dd7dd97161d8b7d7b8267e9
change into the directory and build it with:
xcodebuild
Then add the binary to your path
To use Reset Simultor enable:
System preferences -> Accesability -> Enable access for Assisted devices
API documentation can be found at http://lovelysystems.github.com/robotframework-ioslibrary/IOSLibrary.html, here is an example on how to use it:
Setting | Value |
---|---|
Library | IOSLibrary |
Test Case | Action | Argument | Argument | Argument |
---|---|---|---|---|
Example | ||||
[Documentation] | Starts the iOS Simulator and swipes | |||
Set Device URL | localhost:37265 | |||
Start Simulator | ||||
Wait Until Keyword Succeeds | 1 minute | 5 seconds | Is Device Available | |
Swipe | right | |||
Rotate | left | |||
Screen Should Contain | Hello World |
robotframework is a port of the ruby-based calabash-ios and therefore licensed under the Eclipse Public License (EPL) v1.0
Development by Lovely Systems GmbH, sponsored by Axel Springer AG.