基于事件流图的GUI自动化测试系统的开发  被引量:4

Development of a GUI Automation Testing System Based on Event-Flow Graphs

在线阅读下载全文

作  者:陆永忠[1] 余幸花[1] 聂松林[2] 裴小兵[1] 汪春[1] 

机构地区:[1]华中科技大学软件学院,湖北武汉430074 [2]华中科技大学机械科学与工程学院,湖北武汉430074

出  处:《计算机工程与科学》2008年第5期142-146,共5页Computer Engineering & Science

基  金:华中科技大学自然科学基金资助项目(2007Q006B);湖北省自然科学基金资助项目(2006ABA085);国家自然科学基金资助项目(50775081,50675074)

摘  要:针对目前GUI自动化测试方法中存在着一定程度的手工依赖性以及对测试用例和测试覆盖率缺乏系统管理等问题,本文结合Microsoft UI Automation框架开发了一个基于事件流图的GUI自动化测试系统。该系统先对被测标准GUI进行逆向工程以得到GUI的事件流图和期望的结果,然后分别采用基于蚁群算法的日常冒烟测试用例生成算法和基于宽度优先搜索的深度回归测试用例生成算法生成测试用例,并用这些生成的测试用例来测试新的GUI。测试结果表明,该GUI自动化测试模型是切实可用的,为在Windows环境下提高GUI测试的自动化程度提供了一种更为有效的途径。In the software industry, nowadays automatic testing methods are widely used in GUI testing, which largely depends on manual work, and features low adaptability to software variation, and lacks systematic management as to testing cases and coverage. Accordingly, a more highly automated GUI testing system which is based on event-flow graphs is proposed under the framework of Microsoft UI Automation, where the automation tool is first used to carry out the reverse engineering for testing samples so as to obtain a majority of event-flow graphs and expected testing results. During the process of the formation of the testing cases, two strategies are adopted. For the daily smoke testing, an ant colony optimization algorithm is used to go through all the event points in the event-flow graphs and establish a sequence as a testing case. For the deep regression testing, a spanning tree obtained by the goal-directed searching approach is explored to obtain the testing cases from the goal point to the outset point. And these cases are applied to test the new GUI. The results of experiments illaminate that the event-flow-graph-based system is feasible, which reflects the system is a more effective means of improvement for the GUI testing automation in Windows systems.

关 键 词:软件测试自动化 图形化用户界面 事件流图 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象