Created
June 23, 2012 16:32
-
-
Save vickyg3/2978932 to your computer and use it in GitHub Desktop.
Sample monkeyrunner code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /path_to_sdk/tools/monkeyrunner | |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
print 'waiting for device' | |
device = MonkeyRunner.waitForConnection() | |
print 'device attached' | |
# the body will probably go like this | |
while True: | |
input = sys.stdin.read(1) | |
# perform one of the actions based on input | |
# various actions include swipe, tap, double tap, etc. | |
# done ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment