lgxqf  

2011年9月18日

摘要: #Save this file as mms.py and run it by Command: MonkeyRunner mms.py# Imports the monkeyrunner modules used by this programfrom com.android.monkeyrunner import MonkeyRunner, MonkeyDevice# Connects to the current device, returning a MonkeyDevice objectdevice = MonkeyRunner.waitForConnection()# sets a 阅读全文
posted @ 2011-09-18 21:25 Justin_Ma 阅读(1714) 评论(0) 推荐(0) 编辑
 
摘要: 写一个help.py然后用命令 monkeyrunner.bat help.py即可生成help.html#help.pyfrom com.android.monkeyrunner import MonkeyRunner, MonkeyDevicetext = MonkeyRunner.help("html");f = open('help.html', 'w')f.write(text);f.close(); 阅读全文
posted @ 2011-09-18 20:53 Justin_Ma 阅读(626) 评论(1) 推荐(0) 编辑