随着移动互联网技术迅速发展,移动设备成为人们生活中必不可少的部分,其中Android手机占有了智能手机的主要市场.相对于传统软件,Android应用易于发布、开发周期短,但其质量常常难以保证.软件测试 是用于保证软件质量的最常用方法,其中关键的步骤是如何生成合适的测试用例,而对于事件驱动型Android应 用程序,关键在于如何生成合理的事件序列辅助测试过程.目前,已有一些研究者开发了面向Android应用的测 试事件生成工具.针对三种典型的测试生成工具,分析了其工作原理与特性;并选取覆盖多种类别的4 0 个应用 程序作为基准测试集,设计了统一的测试框架,对工具的兼容性、易用性、测试时间和程序覆盖能力等特点进行了 分析与对比,并根据相关测试工具的缺陷提出一定的创新性的解决方案.
With the rapid development of mobile Internet technology, mobile devices have become an indispensable part of people,s life, in which Android mobile phone occupies the main market for smart phones. Compared with traditional software, Android apps are easy to release and reduction in the development cycle. However, the quality of these applications is hard to ensure. Software testing is the most popular approach used to ensure the quality of software, and its key point is how to produce the suitable test cases. For event-driven Android apps, we concentrate on how to create a reasonable sequence of events to help the test. So far, researchers have developed a variety of tools for Android mobile application test generation. This paper selects three classic tools to make an analysis and comparison on program covering ability, ease of use, compatibility and other characteristics. Finally, some novel solutions are put forward according to the defects of the related testing tools.