-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: android-emulator-plugin
-
None
-
Environment:Linux
Monkey test isn't given any result, here is the command line with package "com.your.package", count 10 and seed 0.
adb -s localhost:35984 shell monkey -v -v -p com.your.package -s 0 --throttle 100 10
:Monkey: seed=0 count=10
:AllowPackage: com.your.package
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
// Selecting main activities from category android.intent.category.LAUNCHER
// Selecting main activities from category android.intent.category.MONKEY
-
- No activities found to run, monkey aborted.
If the we could change the order to:
adb -s localhost:35984 shell monkey -v -v 10 -p com.your.package -s 0 --throttle 100
It works from command line. So move count to just after -v instead of last:
String args = String.format("%s shell monkey -v -v %d -p %s -s %d --throttle %d ",
deviceIdentifier, eventCount, expandedPackageId, seedValue, throttleMs);
MonkeyBuilder.java line 83.