Android monkey test choose a specific activity

前端 未结 4 2050
野的像风
野的像风 2020-12-30 13:45

I\'m using the Android monkey test to test my android apps, it\'s works for my app, and is very cool. but I\'d like to test an application activity in specific, how could i

4条回答
  •  醉酒成梦
    2020-12-30 14:43

    This worked for me. Add category in manifest:

    
        
            
            
        
    
    

    Where MonkeyActivity will perform an initialization setup for testing and from shell:

    adb shell monkey -p my.package -c android.intent.category.MONKEY -v 500
    

提交回复
热议问题