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

基于WEHG模型的GUI软件测试用例生成方法
引用本文:向日锋,毛宇光.基于WEHG模型的GUI软件测试用例生成方法[J].计算机与现代化,2018,0(4):26.
作者姓名:向日锋  毛宇光
摘    要:图形用户界面(GUI)是底层代码的前端表示。针对基于现有的模型生成的测试用例集不能尽快找到软件缺陷的问题,本文从代码层和界面层出发对待测程序进行分析,提出一种GUI测试模型WEHG,该模型的特点是:1)根据事件处理函数中定义变量和引用变量的数量和给对应的节点设置权重值,从而保证拥有更多变量的节点能够优先生成测试用例;2)根据事件处理函数的定义引用对给节点之间的依赖关系设置依赖值,使依赖度高的节点能够优先加入测试序列中。对比实验结果表明,该方法能够更快地发现软件中的缺陷,提高测试用例的缺陷探测效率,降低软件测试的成本。

关 键 词:图形用户界面  测试用例生成  软件测试  
收稿时间:2018-05-02

GUI Software Test Case Generation Method Based on WEHG Model
XIANG Rifeng,MAO Yuguang.GUI Software Test Case Generation Method Based on WEHG Model[J].Computer and Modernization,2018,0(4):26.
Authors:XIANG Rifeng  MAO Yuguang
Abstract:The graphic user interface represents the frontend in the underlying code. In software development at this stage, the GUI accounts for over 60 percent of the total code. In view of the existing model based method to generate test cases can not find software defects as soon as possible, the paper embarks from the code layer and interface layer to analyze the test program, and puts forward a WEHG GUI test model. The model features are: 1) According to the number of the defined variables and reference variables of eventhandler and the corresponding node, we can set weight’s value, thus ensuring more variable nodes generate test cases preferentially; 2) According to the definition of the event handler function, the dependency value of the dependency on the node is set up, so that the node with high dependency can be first added to the test sequence. The experimental results show that this method can detect defects in software faster, improve the detection efficiency of test cases, and reduce the cost of software testing.
Keywords:graphic user interface  test cases generating  software testing  
点击此处可从《计算机与现代化》浏览原始摘要信息
点击此处可从《计算机与现代化》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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