如何停止的猴子疯狂? [英] How do I stop the monkey madness?
问题描述
我用猴子的工具来运行我的Android应用程序的测试。例如,我可以做一个运行如下所示:
I'm using the monkey tool to run a test of my Android application. For example, I might do a run like the following:
adb shell monkey -p com.myapp -v 10000
不过,如果我改变了主意,并需要取消测试,似乎没有成为一个办法这样做,不涉及为该死的猴子来完成大部分或全部的运行等待多分钟。
However, if I change my mind and need to cancel the test, there doesn't seem to be a way to do so that doesn't involve waiting multiple minutes for the damned monkey to finish most or all of its run.
查杀亚行外壳
处理我的Mac上没有解决不了的问题。查杀 com.myapp </ code>处理我的手机上使用DDMS不起作用。拔出我的手机不能正常工作。
Killing the adb shell
process on my mac doesn't solve the problem. Killing the com.myapp
process on my phone using ddms doesn't work. Unplugging my phone doesn't work.
如何取消猴子疯狂?
推荐答案
[鸡蛋里挑骨头]你混淆<一href="http://developer.android.com/guide/developing/tools/monkeyrunner_concepts.html">monkeyrunner与猴子。
[Nitpick] You're confusing monkeyrunner with monkey.
的monkeyrunner工具是不相关的用户界面/应用训练器 猴,也被称为猴工具。猴子工具亚行运行 壳直接在设备或仿真器上,并产生伪随机 的用户和系统事件流。相比之下,monkeyrunner 工具通过发送控制从一个工作站的设备和仿真器 从API特定的命令和事件。
The monkeyrunner tool is not related to the UI/Application Exerciser Monkey, also known as the monkey tool. The monkey tool runs in an adb shell directly on the device or emulator and generates pseudo-random streams of user and system events. In comparison, the monkeyrunner tool controls devices and emulators from a workstation by sending specific commands and events from an API.
[/鸡蛋里挑骨头]
[/Nitpick]
在我的Android 2.2的设备时,我开始猴,我看到一个进程始于DDMS的名称为? (只是一个问号)。当我杀的过程中,猴子疯狂停了下来。
On my Android 2.2 device when I start monkey, I see a process started in DDMS by the name "?" (just a question mark). When I killed that process, the monkey madness stopped.
这篇关于如何停止的猴子疯狂?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!