UiAutomator专项
vv7是昵称
这个作者很懒,什么都没留下…
展开
-
使用UiAutomator中swipe(Point[], int)方法绘制解锁图案
swipe(Point[] segments, int segmentSteps)实现的方法,从point数组中的第一个点滑动到第二个点,第二个点滑动到第三个点,依次滑动,形成一条条折线,每条直线所有步伐segmentSteps 例如: package com.vv7;import junit.framework.Assert;import com.android.uiautomator.原创 2015-07-06 11:51:47 · 8145 阅读 · 0 评论 -
UiAutomator学习笔记
uiautomator uiautomator官方文档 简介uiautomator是Google推出的基于UI自动化测试框架,主要模拟在手机上进行点击、长按、滑动、按键、文本输入等操作Android工具版本信息要求Android SDK Tools, Revision 21 or higher Android SDK Platform, API 16 or higher如何使用1.在Ecli原创 2015-07-06 09:09:18 · 748 阅读 · 0 评论 -
使用uiautomator获取应用内存
最近在学习uiautomator,于是研究了下使用uiautomator框架来监听应用内存使用情况。准备工作1.制定测试场景,考虑到一般会引起内存泄漏的情形,诸如activity之间的跳转、大缓存文件的切换、数据库的读写操作。 2.通过命令行查看应用内存,其中Pss对应的TOTAL值为应用所占用的实际内存值。adb shell dumpsys meminfo packageName3.根据测试场原创 2015-07-15 14:11:31 · 1318 阅读 · 0 评论