Android自动测试之MonkeyRunner之monkeyrunner

来源:互联网 发布:淘宝店铺授权书要多久 编辑:程序博客网 时间:2024/05/01 15:48

A monkeyrunner class that contains static utility methods.

 

Methods                void            alert                (string message,                string title,                 string okTitle)           
                Displays an alert dialog to the process running the current                program.           
integerchoice                (string message,                iterable choices,                 string title)           
Displays a dialog with a list of choices to the process running the current program.
                void            help                (string format)           
                Displays the monkeyrunner API reference in a style similar to that of Python's               pydoc tool, using the specified format.           
stringinput                (string message,                string initialValue,                 string title,                string okTitle,                 string cancelTitle)           
                Displays a dialog that accepts input.           
                void            sleep                (float seconds)           
                Pauses the current program for the specified number of seconds.           
MonkeyDevicewaitForConnection                (float timeout,               string deviceId)           
                Tries to make a connection between the monkeyrunner backend and the                specified device or emulator.           

http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyRunner.html

 

 

/**
* @author 张兴业
* 邮箱:xy-zhang@163.com
* qq:363302850
*
*/