摘要: Theme: How to get the log from device ? Detail: Get the log from device, and write to the local file . Google Source jar: Use the methods in ddmlib.ja 阅读全文
posted @ 2016-08-07 15:54 UDLD 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 启动时间: 即APP Launch时间的计算 主要有一下几种测试方式: 1. 基于Log提取获取 从Android 4.4版本开始,可以从Logcat日志中获取启动信息 以爱奇艺为例 W/ContextImpl(25585): Failed to ensure directory: /storage 阅读全文
posted @ 2016-07-18 14:33 UDLD 阅读(797) 评论(0) 推荐(0) 编辑
摘要: 首先谈一下APP自动化测试面临的一些局限性? 答:测试业务的不明确性,APP逻辑复杂,界面的跳转变化随时间变化。 测试本身的不确定性,如不定时弹窗问题。 测试环境不稳定性,主要是网络的稳定性。 测试接口的局限性,以功能强大的UiAutomator(不考虑Appium)为例。非标准控件无法捕捉,Web 阅读全文
posted @ 2016-05-18 17:44 UDLD 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 一: 总体架构 系统工程架构源码:https://github.com/UDLD/UIAUTOMATORTEST 整个系统基于: UiAutomator + 自编Python交互库 + Robot + Shell脚本 。 采用关键字驱动测试模式,以UiAutomator为主要测试接口,测试逻辑主要由 阅读全文
posted @ 2016-03-01 15:45 UDLD 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 从UiAutomator在TV测试中的局限性说起: 智能TV的操作和手机的操作有很大不同,一般智能TV的操作为遥控器按键操作,来向TV OS发送 KeyCode,以完成指定操作。 UiAutomator在API中提供了控件和长按操作,也提供了点坐标的长按操作,但无法设置长按的时间。 UiAutoma 阅读全文
posted @ 2016-02-24 20:58 UDLD 阅读(1387) 评论(0) 推荐(0) 编辑
摘要: 一. 关于bundle无法导入中文参数 答: 将文件改为UTF-8格式 二. 关于对无法抓取的控件进行快速输入问题 答: 主要通过pressKeyCode方法,首先将光标锁定在输入处。 预先把String数据转化为KeyCode数组,然后再通过上述方法输入。 三. 关于UiWatcher使用问题 答 阅读全文
posted @ 2016-02-19 13:54 UDLD 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Colorful Lecture Note时间限制:10000ms单点时限:1000ms内存限制:256MB描述Little Hi is writing an algorithm lecture note for Little Ho. To make the note more comprehens... 阅读全文
posted @ 2015-12-06 00:51 UDLD 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 问题简述: Android的九宫格密码想必大家都见过了。 大于等于四个点相连便可以作为一种密码。 那么九宫格密码有多少种?算法简述: 关键词: 组合 排列 动态规划 Android 的密码是 3 × 3 点阵中的一条路径,这条路径可以交叉,可以“走日字”,几乎是无所不能(只要不经过重复点... 阅读全文
posted @ 2015-12-01 00:24 UDLD 阅读(2682) 评论(0) 推荐(0) 编辑
摘要: Combination Lock时间限制:10000ms单点时限:1000ms内存限制:256MB描述Finally, you come to the interview room. You know that a Microsoft interviewer is in the room thoug... 阅读全文
posted @ 2015-09-01 23:13 UDLD 阅读(371) 评论(0) 推荐(0) 编辑
摘要: The question: 12个工厂分布在一条东西向高速公路的两侧,工厂距离公路最西端的距离分别是0、4、5、10、12、18、27、30、31、38、39、47. 在这12个工厂中选取3个原料供应厂,使得剩余工厂到最近的原料供应厂距离之和最短,问应该选哪三个厂 ?The code: 1 im... 阅读全文
posted @ 2015-08-12 17:11 UDLD 阅读(291) 评论(0) 推荐(0) 编辑