Uiautomator框架(The UI Automator testing framework)简单介绍
来源:互联网 发布:购物网站如何优化 编辑:程序博客网 时间:2024/05/23 01:25
1、官方地址:https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html
2、简单看了一下官方文档,官方分类为测试多个app时,使用的测试框架(one App one Process)。
3、个人小历史:
从4.3开始,google发布了Uiautomator,我有幸那个时候就开始使用,那个时候,整个步骤相当繁琐, 我们称这个阶段为Uiautomator_v1.0。
a、先建立java工程
b、导入Uiautomator jar包
c、用ant再编译成jar包
d、再push到Android的一个临时目录里
e、再调用shell脚本执行Uiautomator,看起来就挺烦吧,啊哈哈
步骤真没什么,写个批处理脚本就搞定。
4、既然是作为Ui自动化测试的部分,下面的几个重要的API,还是有必要说一说的
UiObject:这个类代表View
UiSelector:这个类代表View的属性特征(位置、实例对象所属类型、在ViewGroup中的位置等)
UiDevices: 这个类代表当前设备
5、优势
a、Google自己的,你知道Google很严谨的,文档也很清楚。
b、直接定位View,兼容性不错,一定开发处处使用
c、主要用于多个app的Ui自动化测试
6、现在的Ui Automator testing framework!!
答:现阶段的Uiautomator框架,我们称作为2.0版本,已经全面加入单元测试中。按照能否看见app源代码的测试角度区分,过去的1.0版当属黑盒测试范畴,而现在的2.0
全面升级到白盒测试阶段,爽!!!!!
- Uiautomator框架(The UI Automator testing framework)简单介绍
- (一)初次认识Google测试框架UI Automator
- (8.1.5.10)Android Testing Support Library翻译之 UI Automator
- Android UI Testing with uiautomatorviewer and uiautomator
- UI Automator
- UI automator
- (三)UI Automator截取屏幕
- UiAutomator自动化测试框架介绍
- .NET Framework框架的一些简单介绍
- Uiautomator使用方法的简单介绍
- android uiautomator学习(二)主要类的简单介绍
- android uiautomator学习(二)主要类的简单介绍
- android uiautomator学习(二)主要类的简单介绍 .
- UI automator learning
- UI Automator Viewer
- android测试:UI automator
- UI automator的使用
- Exploring the C++ Unit Testing Framework Jungle
- 手工编译mysql-5.7.x全过程
- 《一道有趣的面试题》的疑问
- [Headset]如何在ADB shell中读取耳机状态和读取ACCDET寄存器
- 对称加密算法(AES)
- 集合框架一:List接口
- Uiautomator框架(The UI Automator testing framework)简单介绍
- javascript的settimeout
- Android Databinding 从入门到转行(二)添加点击事件
- 2sum,3sum and 和为s的连续正数序列
- 读取android真机里面的文件的方法
- 角色的移动和转身
- 加油!加油!加油!我相信你一定行!
- 源码分析-java-AbstractSequentialList
- Ubuntu 16.04 编译安装 SkyEye 1.3.5