android adb 自动化命令
2014-03-18 17:10
471 查看
因特尔同事写的简单的adb 自动化测试命令
touch.sh
adb shell input 命令可参考:http://www.w3c.com.cn/android%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95-input
#!/system/bin/sh
:hello
#ping 123.45.67.89 -n 1 -w 2000> nul //模拟停2000ms
#adb shell input keyevent 26 //电源键(power)
#adb shell input keyevent 82 //解锁
adb shell input tap 110 311 //触屏坐标
ping 123.45.67.89 -n 1 -w 2000> nul
adb shell input text a //输入a
adb shell input tap 907 225
ping 123.45.67.89 -n 1 -w 2000> nul
adb shell input text b
adb shell input keyevent 26
adb shell input keyevent 26
ping 123.45.67.89 -n 1 -w 20> nul
adb shell input keyevent 82
goto hello
ping 123.45.67.89 -n 1 -w 20> nul
adb shell input keyevent 82
goto hello
相关文章推荐
- 【Android】自动化设计过程中需要adb命令的场景
- Android自动化之adb命令
- 在windows下使用cmd命令通过adb shell自动调用android模拟或真机的InstrumentRunner进行android 自动化测试
- 通过ADB命令获取Android手机的分辨率(升级版)
- 如何获得Android设备名称(ADB命令详细介绍)
- adb logcat命令查看并过滤android输出log
- Android 常用ADB命令
- Android开发中adb命令的常用方法
- android调试工具adb命令大全
- Android adb 常用命令
- Android Monkey测试入门-2-ADB安装和卸载命令
- Android adb命令启动系统组件
- adb logcat命令查看并过滤android输出log
- Android ADB命令整理
- Android adb 命令总结_持续更新
- [Android] adb 命令 dumpsys activity , 用来看 task 中的activity。 (uninstall virus)
- Android常用的一些ADB命令
- android adb shell 命令
- Android下修改hosts文件-重启有效 android开发adb命令的用法,开发包platform-tools中自带adb.exe
- Android---adb的常见命令操作