How to test Android Application user interface using Monkey

I am trying to test my Android app using Monkey . There they say they use this command,

$ adb shell monkey -p your.package.name -v 500

In my application, I have a package name like travelceylon \ client, so if I give a command like:

adb -e shell monkey -p travelceylon\client -v 1000

... it will show errors like this:

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

So what am I doing wrong here?

0
source share
1 answer

You must separate parts of your package name from periods:

adb -e shell monkey -p travelceylon.client -v 1000

As you can see in the error, it skips \from the package name:

AllowPackage: travelceylonclient :IncludeCategory: 
                          ^ ???
+2
source

Source: https://habr.com/ru/post/1536371/


All Articles