E:\>adb devices * daemon not running; starting now at tcp:5037 * daemon started successfully List of devices attached emulator-5554 offline E:\>cd E:\Download\android-sdk_r24.4.1-windows\android-sdk-windows\tools E:\Download\android-sdk_r24.4.1-windows\android-sdk-windows\tools> E:\Download\android-sdk_r24.4.1-windows\android-sdk-windows\tools> E:\Download\android-sdk_r24.4.1-windows\android-sdk-windows\tools>adb install E:\apktest\lemon_app_webview_debug.apk Performing Streamed Install Success
Android系统自带一个命令行工具,可以运行在模拟器里或者真是设备中运行。
monkey向系统发送伪随机的用户事件流,实现对正在开发的应用程序进行压力测试
E:\Download\android-sdk_r24.4.1-windows\android-sdk-windows\tools>adb shell monkey -p com.lemon.lemonban 1000 // Injection Failed // Injection Failed // activityResuming(com.lemon.lemonban) // activityResuming(com.lemon.lemonban) // Injection Failed // activityResuming(com.lemon.lemonban) Events injected: 1000 ## Network stats: elapsed time=14466ms (0ms mobile, 0ms wifi, 14466ms not connected)
>adb shell monkey -p com.lemon.lemonban -v -v -v 1000