Search code examples
androidtestingandroid-monkey

Monkey is not giving output: No activity found to run, Monkey aborted


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

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

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.

Each time I run I get the following error

: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.

Thanks in Advance


Solution

  • 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.