猴子是不会放弃的输出:无活动运行,猴中止 [英] Monkey is not giving output: No activity found to run, Monkey aborted

查看:267
本文介绍了猴子是不会放弃的输出:无活动运行,猴中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的猴子测试工具,它说,运行以下命令

I am new to Monkey testing tool, it says run the following command

亚行外壳猴子-p包名-v 3

adb shell monkey -p "package name" -v 3

这是我不清楚是否从内部项目目录或工作空间在我的计划是present通过这个命令。

It is not clear to me whether to pass this command from inside the Project Directory or from the workspace where my Project is present.

每次我运行了以下错误

:猴子:种子= 0计数= 3
  :AllowPackage:com.and
  :IncludeCategory:android.intent.category.LAUNCHER
  :IncludeCategory:android.intent.category.MONKEY
  **未找到活动跑,猴子中止。

:Monkey: seed=0 count=3
:AllowPackage: com.and
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
** No activities found to run, monkey aborted.

在此先感谢

推荐答案

当你使用亚行外壳,在运行命令的连接的Andr​​oid设备上运行的命令或仿真器。因此,该命令的当前工作目录将是该设备的。如何将它无论你由内项目目录或工作空间在我的计划是present执行它?

When you're running a command using adb shell, the command is run on the connected Android device or emulator. So the current working directory for the command would be that of the device. How would it matter whether you execute it "from inside the Project Directory or from the workspace where my Project is present"?

看着你得到了错误,很显然,你没有正确地给出允许的包名。

Looking at the error you got, it's clear that you've not given the allowed package name correctly.

这篇关于猴子是不会放弃的输出:无活动运行,猴中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆