forked from rapidftr/RapidFTR
-
Notifications
You must be signed in to change notification settings - Fork 4
Android Edition
kishoreyekkanti edited this page Dec 6, 2012
·
13 revisions
- NativeDriver - http://code.google.com/p/nativedriver/
- JUnit - http://www.junit.org/
- Android Emulator - Download - http://developer.android.com/sdk/index.html
- Intellij IDE - Suggested - http://www.jetbrains.com/idea/download/ The free Community Edition should meet your needs
- Using the command line, setup a new project folder
- Download and install NativeDriver, JUnit and the GIT project into the folder.
- [Commandline]: git clone git@github.com:rapidftr/RapidFTR---Android.git
http://code.google.com/p/nativedriver/wiki/GettingStartedAndroid
Prepare the Android device to receive NativeDriver requests
- Enable port forwarding to bind the device port to a port on your PC. This allows the NativeDriver client to communicate with the device through a normal TCP connection.
- [Commandline]: adb forward tcp:54129 tcp:54129
- This restarts the app with instrumentation enabled. The NativeDriver ServerInstrumentation class listens for requests to drive the app on a device port in a JSON Wire Protocol, which is almost identical to that protocol used by Selenium WebDriver.
- [Commandline]: adb shell am instrument com.rapidftr/com.google.android.testing.nativedriver.server.ServerInstrumentation
- There is currently a problem with trying to automate any Android version less than 2.2.