Android自动化测试Monkey
com.android.carhome
com.android.cardock
com.android.calculator2
com.android.spare_parts
jp.co.omronsoft.openwnn
com.android.sdksetup
com.android.contacts
com.android.soundrecorder
com.android.providers.subscribedfeeds
com.android.phone
7.最后一个就是我们刚才加载的APIDemo的应用程序包
8.可以直接输入monkey -p com.example.android.apis -v 50,结果如下,也可以退出shell,在命令行输入,adb shell monkey -p com.example.android.apis -v 500 ,运行过程中,Emulator中的应用程序在不断地切换画面,可以看一下,呵呵
# monkey -p com.example.android.apis -v 50
monkey -p com.example.android.apis -v 50
:Monkey: seed=0 count=50
:AllowPackage: com.example.android.apis
:IncludeCategory: http://www.77cn.com.cnUNCHER
:IncludeCategory: android.intent.category.MONKEY
// Event percentages:
// 0: 15.0%
// 1: 10.0%
// 2: 15.0% // 3: 25.0%