Android自动测试之MonkeyRunner之monkeyrunner

A monkeyrunner class that contains static utility methods.

Methods
<nobr> void </nobr> <nobr><span class="sympad"><a href="http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyRunner.html#alert" target="_blank">alert</a></span> (<em>string</em> message, <em>string</em> title, <em>string</em> okTitle) </nobr>
Displays an alert dialog to the process running the current program.
<nobr><em>integer</em></nobr> <nobr><span class="sympad"><a href="http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyRunner.html#choice" target="_blank">choice</a></span> (<em>string</em> message, <em>iterable</em> choices, <em>string</em> title) </nobr>
Displays a dialog with a list of choices to the process running the current program.
<nobr> void </nobr> <nobr><span class="sympad"><a href="http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyRunner.html#help" target="_blank">help</a></span> (<em>string</em> format) </nobr>
Displays the monkeyrunner API reference in a style similar to that of Python's pydoc tool, using the specified format.
<nobr><em>string</em></nobr> <nobr><span class="sympad"><a href="http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyRunner.html#input" target="_blank">input</a></span> (<em>string</em> message, <em>string</em> initialValue, <em>string</em> title, <em>string</em> okTitle, <em>string</em> cancelTitle) </nobr>
Displays a dialog that accepts input.
<nobr> void </nobr> <nobr><span class="sympad"><a href="http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyRunner.html#sleep" target="_blank">sleep</a></span> (<em>float</em> seconds) </nobr>
Pauses the current program for the specified number of seconds.
<nobr><code><a href="http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyDevice.html" target="_blank">MonkeyDevice</a></code></nobr> <nobr><span class="sympad"><a href="http://www.devdiv.com/android/docs/guide/developing/tools/MonkeyRunner.html#waitForConnection" target="_blank">waitForConnection</a></span> (<em>float</em> timeout, <em>string</em> deviceId) </nobr>
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、付费专栏及课程。

余额充值