-
Notifications
You must be signed in to change notification settings - Fork 0
Setup (OS X)
oliver32767 edited this page May 16, 2012
·
4 revisions
- 10.6 users may have to install the python library
argparseto properly use the script runner utilities. To check if you have it installed, issue the following command:
$ python -m argparse
If you need to install argparse check out the project page
- Optional: Add the following line to your ~/.bashrc file:
export ANDROID_HOME="/path/to/android/sdk"
replacing the path with your Android SDK installation location. If you don't do this, you'll need to specify the path using the --android-home option when executing robotmonkeyrunner.
-
IMPORTANT: When referencing your home directory in
ANDROID_HOME, use the variable$HOMEinstead of a tilde (~). Java's classloader won't expand this correctly and you'll end up seeingjava.lang.NoClassDefFoundError.
-
Download and unpack the latest version from GitHub.
-
Launch an Android emulator, or connect a device. Run the following command (if
adbis in not in your PATH, replaceadbwith the appropriate absolute path):
$ adb devices
which should start the adb server if it's not already running and show you a list of attached devices.
-
cdinto the unpacked archive and issue the following command:
$ ./robotmonkeyrunner examples/sanity-test
which will execute the provided sanity test suite, which will PASS if RobotFramework can be launched, the Sikuli libs can be loaded and your device/emulator can be debugged.