2014-06-06 60 views
0

我想用猴子测试我的apk(包名:com.edutor.ignitor)。所以我输入以下命令猴子测试错误android

adb shell monkey -p com.edutor.ignitor -v 200 

得到错误如下

:Monkey: seed=1403140033385 count=200 
:AllowPackage: com.edutor.ignitor 
:IncludeCategory: android.intent.category.LAUNCHER 
:IncludeCategory: android.intent.category.MONKEY 
** No activities found to run, monkey aborted. 

接下来我输入以下命令

adb shell monkey -p com.edutor.ignitor -c android.intent.category.LAUNCHER -c android.intent.category.MONKEY -vvv 100 

得到错误如下

:Monkey: seed=1403155767105 count=100 
:AllowPackage: com.edutor.ignitor 
:IncludeCategory: android.intent.category.LAUNCHER 
:IncludeCategory: android.intent.category.MONKEY 
** No activities found to run, monkey aborted. 

任何建议..?

+0

看看这里问题/ 13838159 /猴子不是给出输出没有活动发现运行猴子中止 – Bobby

+0

嗨马努,感谢您的答复...我的包名是正确的。即使它给出了相同的错误 – user3297196

+0

您的Launcher-Activity是否在AndroidManifest.xml中声明? – Bobby

回答

0

不是进入种子值,猴子有没有可执行的情况下,再加上种子值,该值设置为20,如:http://stackoverflow.com/:

adb shell monkey -p om.edutor. Ignitor-s 20-v-v-v 200