lgxqf  

随笔分类 -  Android Testing

Knowledge of Android Testing
  • MonkeyRunner 录制和播放脚本
    摘要:#Usage: monkeyrunner recorder.py#recorder.py http://mirror.yongbok.net/linux/android/repository/platform/sdk/monkeyrunner/scripts/monkey_recorder.pyfrom com.android.monkeyrunner import MonkeyRunner as mrfrom com.android.monkeyrunner.recorder import MonkeyRecorder as recorderdevice = mr.waitForConnec 阅读全文
    posted @ 2011-09-21 12:01 Justin_Ma 阅读(2233) 评论(1) 推荐(0)
  • MonkeyRunner Python 脚本实例 - MMS
    摘要:#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 阅读(1726) 评论(0) 推荐(0)
  • 如何生成 MonkeyRunner API Reference文档
    摘要:写一个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 阅读(637) 评论(1) 推荐(0)