首页 | 本学科首页   官方微博 | 高级检索  
     

Android应用录制与回放工具设计
引用本文:闫凯,孙军梅,刘雪娇,朱敏.Android应用录制与回放工具设计[J].计算机系统应用,2018,27(9):249-255.
作者姓名:闫凯  孙军梅  刘雪娇  朱敏
作者单位:杭州师范大学 杭州国际服务工程学院, 杭州 311121,杭州师范大学 杭州国际服务工程学院, 杭州 311121,杭州师范大学 杭州国际服务工程学院, 杭州 311121,杭州师范大学 杭州国际服务工程学院, 杭州 311121
基金项目:国家自然科学基金(61502134);杭州市科技计划项目(20170533B04)
摘    要:智能手机以及平板凭借其便捷的丰富的输入功能越来越受到用户的欢迎,但是它们丰富的输入功能增加了测试的复杂性.现有的基于GUI级别的录制与回放工具满足不了Android应用程序可以从设备上的各种传感器获取输入,识别GUI手势以及一些对时间有精确要求的录制和回放需求.本文设计并且实现了一个工具:RARA.RARA可通过直接捕获手机底层的GUI事件以及传感器事件进行应用的录制,并且以微秒时间精度回放.最后通过实验验证了:(1) RARA录制与回放功能是有效的;(2)回放的时间开销只有1%左右,不会对宿主APP的性能产生影响;(3)通过RARA的录制回放功能,可在多款应用程序的测试中重现应用Bug.

关 键 词:软件测试  Android  自动化测试  录制  回放
收稿时间:2018/1/11 0:00:00
修稿时间:2018/1/31 0:00:00

Design of Recording and Replay Tools for Android Application
YAN Kai,SUN Jun-Mei,LIU Xue-Jiao and ZHU Min.Design of Recording and Replay Tools for Android Application[J].Computer Systems& Applications,2018,27(9):249-255.
Authors:YAN Kai  SUN Jun-Mei  LIU Xue-Jiao and ZHU Min
Affiliation:Hangzhou Institute of Service Engineering, Hangzhou Normal University, Hangzhou 311121, China,Hangzhou Institute of Service Engineering, Hangzhou Normal University, Hangzhou 311121, China,Hangzhou Institute of Service Engineering, Hangzhou Normal University, Hangzhou 311121, China and Hangzhou Institute of Service Engineering, Hangzhou Normal University, Hangzhou 311121, China
Abstract:Smart phones and tablets are gaining popularity with their rich and powerful input, but their rich input features add to the complexity of the testing. Existing GUI-based recording and playback tools are inadequate for capturing the input of sensor devices, GUI gestures, and have precise timing requirements. This study designs and implements a tool named RARA. RARA can be recorded and replay both GUI events and sensor events, and replaying with microsecond accuracy. Finally, it is verified by experiment:(1) RARA is effective; (2) The playback time overhead is only about 1%, will not affect the performance of the host APP; (3) The application bug can be reproduced through the RARA.
Keywords:software testing  Android  automatic testing  record  replay
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号