基于数据监听的Android自动化测试方案
首发时间:2014-11-15
摘要:Android自动化测试在保证应用程序质量,提高产品竞争力方面具有重要作用。目前绝大多数的新闻阅读类应用、信息交互类应用等均采用WebView作为页面展示的方法,此方法具有简单、灵活、易维护的优点。但是,一些广泛使用的自动化测试框架针对WebView的测试支持并不完善。本文提出一种新的解决思路,通过监听应用程序在运行期间接收的HTTP请求响应,重建出WebView中的HTML等文件,并通过一系列API实现与测试脚本的动态实时交互,从而在根本上解决了对应用内Web页面的检测、分析和测试。经实验证明,该方案行之有效,具有广阔的应用前景。?????
For information in English, please click here
A New Approach of Android Automated Test Based on Packet Capture
Abstract:Android automated test plays an important role in the process of application development. It's the guarantee of the quality and stability of the program. WebView is widely used as the prime solution of presenting information in news applications, and info-exchange applications, etc., because of its advantage of easy implementation and flexibility. However, some major test frameworks, such as Robotium, can't support it quite well. In this paper, a new approach of android automated test is proposed. It's based on packet capture and HTTP reconstruction technology. A series of new APIs are developed to support the dynamic and real-time communication between packet sniffer program and test script. The results of experiments on some popular applications show that this method works well as expected .?????
Keywords: software Android automated test packet capture?????
基金:
论文图表:
引用
No.4615967101377614****
同行评议
共计0人参与
勘误表
基于数据监听的Android自动化测试方案
评论
全部评论0/1000