![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UiAutomator1.0
wxtx2020
Tester
展开
-
UIAutomator1.0入门
一.什么是UIAutomator? UIAutomator是一款Android自动化测试框架,注入原生事件进行模拟用户操作。 优点:支持跨应用操作,不需要对被测应用重新签名,可方便地对事件进行操作与监控,易扩展易上手等。 缺点:SDK16(Android4.1)及其以上才能使用,resourceId控件的获取需要SDK18(Android4.3)以上,对中文的支持较差等。 二.UI2...原创 2019-08-14 22:39:28 · 862 阅读 · 0 评论 -
UIAutomator1.0 API简介
1. UiDevice对象 getUiDevice()的方法可以得到一个UiDevice的对象,通过这个对象可以完成一些针对设备的动作: click(intx,inty) ----在(x,y)表示的像素地方点击 pressBack() pressDelete() pressEnter() pressHome() pressMenu() pressSearch() ----点击相应的按键 wa...原创 2019-08-25 14:17:30 · 519 阅读 · 0 评论 -
UIAutomator1.0 Page Object实践
以打开飞行模式的操作为例 一. 父类page页 package com.qwert.autotest.simcard.page; import com.android.uiautomator.core.UiDevice; import com.android.uiautomator.core.UiObject; import com.android.uiautomator.core.UiS...原创 2019-08-25 15:00:03 · 541 阅读 · 0 评论