摘要
Android系统广泛应用于移动终端。由于开放性的原因,其缺乏严格的开发规范,导致应用质量得不到保证。目前应用商城针对Android上应用程序的功能测试,由于未知应用功能点的不可见性,只能采用手工测试。而随着应用数量的快速增长,纯手工测试已经不能满足测试需求,应用商城迫切需要一种针对未知应用的自动化验证工具。针对这一技术空缺,使用图像比对算法作为识别应用功能界面的理论基础,通过遍历界面来覆盖应用的所有功能点,设计并实现一种UI自动化功能测试工具。通过自动化和并行执行,在保证正确性和功能点覆盖率的情况下,提高了效率,降低了测试成本。测试数据表明应用图像比对方法的自动化功能测试可实现功能点覆盖率93.8%,正确性100%。
Android system is widely appl:ied on the mobile terminals. However, for the sake of its openness and the lack of strict specification on its exploration, the application qualities are hard to be guaranteed. Now the application stores can only test the functions of the applications of Android manually due to the invisibility of the unknown functional points of the application. Along with the rapid increase in numbers of the application, fully manual test can no longer meet the testing requirement, and the application stores urgently pursue a kind of automatic validation tool aiming at the unknown applications. For this techniques' gap, we employ the graphic comparison algorithm as the theoretical basis of the applied functional interface recognition, by interface traverse to cover all the points with functions in applications, and design and implement an automatic UI function testing tool. Through automation and parallel execution, the efficiency is improved in condition of ensuring the validity and functional points coverage, therefore the test cost is curtailed as well. Test data shows that the automatic function test using graphic comparison approach is able to achieve 93.6% in function points coverage and 100% correctness.
出处
《计算机应用与软件》
CSCD
北大核心
2012年第10期117-122,共6页
Computer Applications and Software
基金
核高基重大专项(2009ZX01036-001-003)