Android自动测试之MonkeyRunner之monkeyrunner

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.           
integer choice                ( 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.           
string input                ( 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.           
MonkeyDevice waitForConnection                ( 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
*
*/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值