节点文献

基于模型的GUI测试工具的实现研究

Research on Implementation of a Graphical User Interface Test Tools Based on Model

【作者】 王立峰

【导师】 黄志球;

【作者基本信息】 南京航空航天大学 , 计算机应用技术, 2007, 硕士

【摘要】 图形用户界面(GUI)是软件的重要组成部分。在软件系统的交互中,GUI被广泛的使用,变得越来越复杂,由此引发的GUI测试问题也越来越具有挑战性。但是,GUI的测试目前依然是一个较少研究的领域。由于GUI软件和传统的软件有许多不同的特点,如以用户事件作为输入、图形化的输出等,这使得传统软件的测试技术不能直接应用于GUI软件的测试。针对GUI测试的这个问题,为了实现GUI测试的自动化,本文在已有研究的基础上给出了一个通用的GUI事件表示方法,扩展了已有GUI测试模型的定义,补充了GUI测试覆盖准则。当前流行的GUI测试工具自动化程度不高、过度依赖于测试人员,大大影响测试的效率。结合改进的模型自动化程度高的优点,本文设计和实现了一个基于模型的GUI测试工具。给出了该工具的主要结构、工作流程以及测试信息的XML Schema结构。着重研究了各个功能模块的设计、实现过程中涉及的关键技术及其实现,包括图形用户界面的自动剖析、GUI测试模型的自动构建、测试用例的执行等。最后,通过一个基于Java开发的记事本,介绍了该测试工具在实际中的应用和实际效果。

【Abstract】 Graphical User Interface (GUI) is a critical component of today’s software. The widespread use of GUIs for interacting with software is leading to that the GUI become more and more complex. With the growing complexity come challenges in testing the correctness of a GUI. But, GUI testing remained a neglected research area. Since GUI software has characteristics that are different form conventional software, such as user events as input and graphical data as output, techniques developed to test conventional software cannot be directly applied to test GUI software. With the particular goals of automation of GUI testing, this dissertation introduction a improved GUI test model based on the existing research .In the modal, we present a new GUI event present which is more universal. Furthermore, we extend the definition of the test model and complement the GUI test coverage.The popular existing GUI test tools have many deficiencies, for example low automation and depending on the test engineer seriously, which influence the efficiency. This dissertation design and implement a GUI test tools based on the model which integrate the merit of model. We introduce the main structure and work flow of the tools, the XML Schema of the test information. The dissertation research the key technology in the implementation of the tool’s function, including: GUI ripper, automation constructed of the model and auto run of the test cases; Lastly, through a case of Notepad developed based on Java, this test tool is demonstrated how to be applied in practice. The value of test model is validated.

  • 【分类号】TP311.5
  • 【被引频次】4
  • 【下载频次】365
节点文献中: 

本文链接的文献网络图示:

本文的引文网络