| 
                    
    
        |  |  
        | 
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
        阅读全文
            
    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
        阅读全文
            
    如何生成 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();
        阅读全文 
    
   |