摘要:
http://developer.android.com/guide/developing/tools/monkeyrunner_concepts.html#APIClassesA Simple monkeyrunner Program# Imports the monkeyrunner modules used by this programfrom com.android.monkeyrunner import MonkeyRunner, MonkeyDevice# Connects to the current device, returning a MonkeyDevice objec
阅读全文
posted @ 2012-01-18 20:11
随我畅翔
阅读(2096)
推荐(0)
编辑
摘要:
#使用320*480分辨率android屏幕import sysfrom com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage#添加一个新的notedef insertnote(d): d.startActivity(component="com.example.android.notepad/.NotesList")print "insert a new note"MonkeyRunner.sleep(2)d.press("KEYCODE_MENU"
阅读全文
posted @ 2012-01-18 17:34
随我畅翔
阅读(723)
推荐(0)
编辑