My package is called com.mywebsite.banana.
- I want to have a seed, so repeat the test: -s 13
- I want to have a fairly low verbosity level: -v
- I want to run 500 psuedo-random commands: 500
I call a monkey like this :
adb shell monkey -s 13 -p com.mywebsite.banana -v 500
My conclusion :
:Monkey: seed=13 count=500
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
No activities found to run, monkey aborted
In my AndroidManifest.xml there is this:
<categoy android:name="android.intent.category.LAUNCHER"/>
What am I doing wrong? Is there anything I need to add to my application before running the monkey? The main activity is in com.mywebsite.banana - is this the right way to pass, or should it go all the way to such activity: com.mywebsite.banana.activityName?
From what I read, it seems like I'm doing it right:
Edit
1:
adb shell monkey -p com.mywebsite.banana -c intent.CATEGORY_LAUNCHER -v 500
1:
:Monkey: seed=13 count=500
:AllowPackage: com.mywebsite.banana
:IncludeCategory: intent.CATEGORY_LAUNCHER
// Warning: no activities found for category intent.CATEGORY_LAUNCHER
** No activities found to run, monkey aborted
2:
adb shell monkey -p com.mywebsite.banana -c android.intent.category.MONKEY -v 500
2:
:Monkey: seed=13 count=500
:AllowPackage: com.mywebsite.banana
:IncludeCategory: android.intent.category.MONKEY
No activities found to run, monkey aborted
3:
adb shell monkey -p com.mywebsite.banana -c android.intent.category.LAUNCHER -c android.intent.category.MONKEY -v 500
3:
:Monkey: seed=13 count=500
:AllowPackage: com.mywebsite.banana
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
No activities found to run, monkey aborted
:
<activity
android:name="com.mywebsite.banana.FRCActivity"
android:launchMode="singleTask"
android:configChanges="orientation|screenSize"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="none" />
<category android:name="android.intent.category.MONKEY"/>
</intent-filter>
</activity>
:
<activity
android:name="com.mywebsite.banana.FRCActivity"
android:launchMode="singleTask"
android:configChanges="orientation|screenSize"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MONKEY"/>
</intent-filter>
</activity>