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

后端 未结 2 343
执念已碎
执念已碎 2021-01-14 10:05

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

相关标签:
2条回答
  • 2021-01-14 10:39

    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.

    0 讨论(0)
  • 2021-01-14 10:44

    Check your application whether it has an Activity (android.intent.category.LAUNCHER)or not in manifest file. If its not present you will get this error. Actually i am also testing mobile apps with monkey tool and got this error. If you have any doubt create a sample project with Activity & intent filter and run monkey tool.

    0 讨论(0)
提交回复
热议问题