一种基于录制/重放的Android应用众包测试方法
作者:
作者单位:

作者简介:

曹羽中(1984-),男,博士生,高级工程师,主要研究领域为软件工程,软件测试与维护;魏峻(1970-),男,博士,研究员,博士生导师,CCF高级会员,主要研究领域为软件工程,分布式计算;吴国全(1979-),男,博士,副研究员,CCF专业会员,主要研究领域为软件工程,软件测试与维护,面向服务的计算;黄涛(1965-),男,博士,研究员,博士生导师,CCF高级会员,主要研究领域为软件工程,分布式计算;陈伟(1980-),男,博士,副研究员,CCF专业会员,主要研究领域为软件演化与维护,服务计算,持续软件工程;王溯(1997-),男,学士,主要研究领域为软件测试.

通讯作者:

吴国全,E-mail:gqwu@otcaix.iscas.ac.cn

中图分类号:

基金项目:

国家重点研发计划(2017YFA0700603);国家自然科学基金(61472407);北京城市学院科研种子基金(KYZZ201801);北京城市学院2018年度实培计划


Crowdsourcing Test Method for Android Applications Based on Recording/Replay
Author:
Affiliation:

Fund Project:

National Key Research and Development Program of China (2017YFA0700603); National Natural Science Foundation of China (61472407); Scientific Research Seed Fund of Beijing City University (KYZZ201801); 2018 Annual Graduation Practice Training Program of Beijing City University

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    随着Android设备的流行和普及,Android生态系统的碎片化问题越发严重.为了确保应用质量,Android应用需要在多种设备上进行测试.为了应对大量重复机械的测试工作,学术界和工业界提出了众多跨设备的测试方法,但目前的方法还有较多的局限性:(1)手工编写设备无关的测试脚本耗时且容易出错;(2)现有录制/重放方法生成的测试脚本在跨设备重放时会出现各种问题,导致重放失败;(3)由于缺少足够的Android设备,应用难以在大量不同类型的设备上进行测试;(4)现有的测试方法由于缺少应用特定的领域知识,无法生成有效的用户输入,导致测试覆盖率不高.基于以上原因,大量的应用在没有经过充分测试后发布,兼容性问题频发.针对以上问题,提出一种基于录制/重放的Android应用众包测试方法,并实现了原型工具AppCheck.AppCheck收集众包用户和设备交互时所产生的事件序列后,将其转换为平台无关的测试脚本,可直接在众包用户的设备上进行重放.在重放期间,AppCheck收集各种测试相关数据(例如截图和布局信息)以检测兼容性问题.实验结果表明,AppCheck能够有效地完成跨设备录制/重放以及兼容性问题的检测,弥补了当前方法的不足.

    Abstract:

    It is well known that the fragmentation of Android ecosystem has caused severe compatibility issues. Therefore, for Android apps, cross-platform testing (the apps must be tested on a multitude of devices and operating system versions) is particularly important to assure their quality. Although lots of cross-platform testing techniques have been proposed, there are still some limitations: 1) It is time-consuming and error-prone to encode platform-agnostic tests manually; 2) Test scripts generated by existing record/replay techniques are brittle and will crash when replayed on different platforms; 3) Developers, and even test vendors have not equipped with some special Android devices; 4) Due to the lack of specific domain knowledge, the existing test methods cannot generate effective user inputs, resulting in low testing coverage. As a result, apps that have not been fully tested, will lead to many compatibility issues after releasing. To address these limitations, this study proposes AppCheck, a crowdsourced testing service for Android apps. To generate tests that will explore different behavior of the app automatically, AppCheck crowdsources event trace collection over the Internet, and various touch events will be captured when real users interact with the app. The collected event traces are then transformed into device-independent test scripts, and directly replayed on the devices of real users. During the replay, various data (e.g., screenshots and layout information) will be extracted to identify compatibility issues. The empirical evaluation shows that the proposed AppCheck is effective and improves limitations of the state-of-the-art.

    参考文献
    相似文献
    引证文献
引用本文

曹羽中,吴国全,陈伟,魏峻,黄涛,王溯.一种基于录制/重放的Android应用众包测试方法.软件学报,2020,31(8):2508-2529

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2018-05-07
  • 最后修改日期:2018-06-21
  • 录用日期:
  • 在线发布日期: 2019-04-11
  • 出版日期: 2020-08-06
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号