摘要
基于模型驱动的自动化测试研究大多需要事先对应用程序GUI进行遍历进而构建模型。然而以往自动化遍历的研究大部分局限于移动端并且GUI覆盖率并不高。为此,提出一种Windows应用程序的GUI自动化遍历方法。该方法基于事件触发动态探测应用程序GUI,通过对比应用软件窗口集合判断GUI状态是否迁移,提出步骤回溯以及样式过滤思想,解决了GUI遍历过程中的回环、遍历不充分、遍历效率低三个关键问题。基于Pwinauto实现了可以自动遍历Windows应用程序GUI的原型工具。实验表明,该方法平均近似GUI覆盖率可以达到57. 8%~74. 3%。
Researches based on model-driven automated testing need to traverse the application’s GUI to build model in advance.However,previous studies of automated traversal were mostly limited to mobile terminal and the coverage of GUI was not high enough.This paper proposed a GUI automation traversal method for Windows applications.This method could detect application’s GUI dynamically based on event-triggered.By comparing the set of application windows to judge whether the GUI state was migrated or not,the idea of step backtracking and style filtering were proposed,which solved three key problems of loopback,inadequate traverse,and low traversal efficiency in the GUI traversal process.We implemented a prototype tool based on Pwinatuo that could automatically traverse the GUI of the Windows application.Experiments show that this method can achieve a 57.8%to 74.3%average approximate GUI coverage.
作者
朱方祥
顾乃杰
Zhu Fangxiang;Gu Naijie(School of Computer Science and Technology,University of Science and Technology of China,Hefei 230027,Anhui,China;Anhui Province Key Laboratory of Computing and Communication Software,Hefei 230027,Anhui,China;Institute of Advanced Technology,University of Science and Technology of China,Hefei 230027,Anhui,China)
出处
《计算机应用与软件》
北大核心
2018年第11期26-32,共7页
Computer Applications and Software