
Android UIAutomator
ZoeyZY
Work harder,You will be better
展开
-
Android UIAutomator浅谈
转载:https://www.jianshu.com/p/7718860ec657对于刚接触Android UIAutomator的同学,很实用! 强烈推荐!!!转载 2019-06-26 17:53:07 · 200 阅读 · 0 评论 -
Android+UiAutomator相关API详细说明
UiAutomator API详细说明UiDevice: http://blog.youkuaiyun.com/maocaowu_csdn/article/details/50684309UiSelector: http://blog.youkuaiyun.com/maocaowu_csdn/article/details/50749306UiObject: http://blog.youkuaiyun.com/yiwaChe...原创 2019-07-01 11:33:59 · 460 阅读 · 0 评论 -
Android+UiAutomator脱离PC运行自动化测试用例方法(一):monkey命令
第一步:安装应用包adb push C:\Users\zhangyao\Desktop\test\TestApk\apptest-debug.apk /data/local/tmp/com.example.myapplication(利用adb命令将应用文件从电脑端复制到终端特定路径下的com.example.myapplication包中)adb shell pm install -t -...原创 2019-07-11 16:00:14 · 3570 阅读 · 1 评论 -
Android+UiAutomator脱离PC运行自动化测试用例方法(二):nohup命令
脱机运行Android+UiAutomator框架下的测试用例方法一:见博客:https://blog.youkuaiyun.com/ZoeyZY/article/details/95480394方法二:第一步:安装应用包:adb push C:\Users\zhangyao\Desktop\test\TestApk\apptest-debug.apk /data/local/tmp/com.exa...原创 2019-07-11 17:38:13 · 2475 阅读 · 0 评论 -
windows下,cmd命令窗口一次执行多条adb命令,并保存脚本运行结果到文件方法。
1、新建一个run.bat批处理命令文件2、在命令文件中,添加内容如下@echo offCommand 1Command 2Command 3Command 3示例:示例内容:@echo offadb push C:\Users\zhangyao\Desktop\test\TestApk\apptest-debug.apk /data/local/tmp/com.exampl...原创 2019-07-16 11:03:54 · 7016 阅读 · 0 评论 -
用adb命令全盘查找手机内存中特定名称文件(find / -name "*userdata*")
操作如下:转载 2019-07-16 14:52:31 · 7145 阅读 · 0 评论 -
Java--(List<String> list = new ArrayList<String>(); )使用和理解
List<String> list = new ArrayList<String>();第一次看到这行代码是一头雾水,查了好久才弄清楚这是什么东西,怎么用。示例1:public class GenericTest { public static void main(String[] args) { List list = new Arra...原创 2019-07-17 17:33:47 · 13199 阅读 · 2 评论 -
UiAutomator之启动&&退出指定测试APP
UiAutomator执行自动化测试中,为了对某个应用执行相关功能点的测试工作。那么在 protected void setUp() throws Exception {}函数中,进行一些测试前的准备工作;在 protected void tearDown() throws Exception {}函数中,进行释放一些资源。例如:setUp() throws Exception {}函数...原创 2019-09-05 15:35:49 · 1373 阅读 · 0 评论 -
UiAutomator之退出近期运行的所有APP
退出近期运行的所有APP应用方法: public void exitAllApp() throws RemoteException, UiObjectNotFoundException, InterruptedException{ UiDevice.getInstance().pressRecentApps(); UiObject recenta...转载 2019-09-05 15:40:55 · 804 阅读 · 0 评论