猴子是不会放弃的输出:无活动运行,猴中止

问题描述:

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

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.