摘要
软件测试在提高移动应用的安全性和可靠性方面扮演着重要角色.然而,目前主流的移动应用界面测试技术存在着许多不足:人工编写脚本和录制回放技术需要消耗大量的人力成本,自动化测试在移动应用界面测试的应用场景上受到了诸多限制.针对这些问题,提出一种基于手绘制导的移动应用界面测试方法.该方法通过设计一种简单直观且具有较强表达能力的手绘语言来帮助测试者轻松表达其测试意图,测试者仅需在待测应用的界面图像上做简单绘制,就能生成对应的测试模型,并以此为基础生成界面测试所需的测试用例.以近年来在相关文献中已经用作移动应用界面测试的评估用例集为基准来评估该方法的测试效果.评估结果表明:在提供很少人力成本的条件下,手绘图形所表达的用户测试意图在制导移动应用界面测试上能起到非常关键的作用.
Software testing plays an important role in improving the security and reliability of mobile applications.However,there are many shortcomings in the current mainstream testing technology for mobile application.For example,manual scripting and recording playback techniques require a lot of labor costs,while automatic testing solutions have been limited when they are applied in mobile applications.This article presents a sketch-guided GUI test generation approach for testing mobile applications.It provides a simple but expressive sketch language to help testers specify their testing purposes easily.Testers just need to draw a few simple strokes on the corresponding screenshots of the application under test,then the proposed approach recognizes these strokes automatically and converts them into the test model.Finally,test cases are generated based on the model.The effects of proposed sketch-guided testing technique are evaluated based on the test cases,which were used in the literature of mobile application testing in recent years.The results show that the proposed approach is significantly effective with little labor cost in GUI testing of mobile applications.
作者
成浩亮
汤恩义
玉淳舟
张初成
陈鑫
王林章
卜磊
李宣东
CHENG Hao-Liang;TANG En-Yi;YU Chun-Zhou;ZHANG Chu-Cheng;CHEN Xin;WANG Lin-Zhang;BU Lei;LI Xuan-Dong(State Key Laboratory for Novel Software Technology at Nanjing University,Nanjing 210023,China;Software Institute,Nanjing University,Nanjing 210093,China;Department of Computer Science and Technology,Nanjing University,Nanjing 210023,China)
出处
《软件学报》
EI
CSCD
北大核心
2020年第12期3671-3684,共14页
Journal of Software
基金
国家重点研发计划(2017YFB1001801)
国家自然科学基金(61772260,61402222,61632015,61690204)。
关键词
手绘制导测试生成
模型驱动的自动化测试
移动应用
图形界面测试
sketch guided test generation
model based test automation
mobile applications
graphical user interface testing