首页 | 本学科首页   官方微博 | 高级检索  
     

基于事件流图的GUI自动化测试系统的开发
引用本文:陆永忠,余幸花,聂松林,裴小兵,汪春.基于事件流图的GUI自动化测试系统的开发[J].计算机工程与科学,2008,30(5):142-146.
作者姓名:陆永忠  余幸花  聂松林  裴小兵  汪春
作者单位:1. 华中科技大学软件学院,湖北,武汉,430074
2. 华中科技大学机械科学与工程学院,湖北,武汉,430074
基金项目:华中科技大学自然科学基金 , 湖北省自然科学基金 , 国家自然科学基金
摘    要:针对目前GUI自动化测试方法中存在着一定程度的手工依赖性以及对测试用例和测试覆盖率缺乏系统管理等问题,本文结合Microsoft UI Automation框架开发了一个基于事件流图的GUI自动化测试系统。该系统先对被测标准GUI进行逆向工程以得到GUI的事件流图和期望的结果,然后分别采用基于蚁群算法的日常冒烟测试用例生成算法和基于宽度优
先搜索的深度回归测试用例生成算法生成测试用例,并用这些生成的测试用例来测试新的GUI。测试结果表明,该GUI自动化测试模型是切实可用的,为在Windows环境下提高GUI测试的自动化程度提供了一种更为有效的途径。

关 键 词:软件测试自动化  图形化用户界面  事件流图
文章编号:1007-130X(2008)05-0142-05
修稿时间:2007年10月6日

Development of a GUI Automation Testing System Based on Event-Flow Graphs
LU Yong-zhong,YU Xing-hua,NIE Song-lin,PEI Xiao-bing,WANG Chun.Development of a GUI Automation Testing System Based on Event-Flow Graphs[J].Computer Engineering & Science,2008,30(5):142-146.
Authors:LU Yong-zhong  YU Xing-hua  NIE Song-lin  PEI Xiao-bing  WANG Chun
Abstract: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 illuminate 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.
Keywords:automatic software testing  graphic user interface  event-flow graph
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号