###
计算机系统应用:2018,27(10):240-247
本文二维码信息
码上扫一扫!
基于控件路径的跨设备UI自动化测试方法
侯津1,2, 顾乃杰1,2, 丁世举1,2, 杜云开1,2
(1.中国科学技术大学 计算机科学与技术学院, 合肥 230027;2.安徽省计算与通信软件重点实验室, 合肥 230027)
UI Automating Test Method for Cross-Device Based on Widget Path
HOU Jin1,2, GU Nai-Jie1,2, DING Shi-Ju1,2, DU Yun-Kai1,2
(1.School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China;2.Anhui Provincial Key Laboratory of Computing and Communication Software, Hefei 230027, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 66次   下载 65
投稿时间:2018-03-15    修订日期:2018-04-03
中文摘要: 随着移动应用的爆炸式增长,如何高效、正确地进行UI自动化测试成为了一个重要问题.传统自动化方法大多需手动编写测试脚本,自动化程度更高的录制回放方法则普遍具有跨设备能力不足的问题,而且现有断言机制已经不足以描述丰富的UI语义.针对上述问题,本文提出一种跨设备能力强且可以描述丰富UI语义的录制回放自动化测试方法.该方法使用控件路径精确定位控件,并结合跨设备UI自适应方法以提高跨设备能力;通过提出两种新的断言机制以支持与数字排序和图片相关的UI语义.在该方法基础上,本文面向Android和iOS应用程序实现了一种自动化测试框架RRF,实验结果表明RRF的回放成功率比其他自动化测试工具更高.
中文关键词: UI自动化测试  跨设备  控件路径  断言
Abstract:With the explosive growth of mobile applications, how to carry out UI automation testing efficiently and correctly becomes an important issue. Most of the traditional automated methods require developers to write test scripts manually, and another high-level testing method called "recording and playback" does not has capability of crossing devices. In addition, existing assertion mechanisms are generally not capable of describing the UI semantics completely. Due to those problems, this paper presents a new recording and playback method which is capable of crossing devices and describing the UI semantics. This method uses the widget path to precisely locate the widgets and employs the cross-device UI adaptive method to improve the capability of device-crossing. Furthermore, this study proposes two new assertion mechanisms to support UI semantics which check on number sorting and pictures. In addition, this study builds a prototype framework called RRF according to the proposed methods, and the experimental results show that RRF has a higher success rate of playback than other automated test tools.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
侯津,顾乃杰,丁世举,杜云开.基于控件路径的跨设备UI自动化测试方法.计算机系统应用,2018,27(10):240-247
HOU Jin,GU Nai-Jie,DING Shi-Ju,DU Yun-Kai.UI Automating Test Method for Cross-Device Based on Widget Path.COMPUTER SYSTEMS APPLICATIONS,2018,27(10):240-247

用微信扫一扫

用微信扫一扫