期刊文献+

基于WEHG模型的GUI软件测试用例生成方法

GUI Software Test Case Generation Method Based on WEHG Model
下载PDF
导出
摘要 图形用户界面(GUI)是底层代码的前端表示。针对基于现有的模型生成的测试用例集不能尽快找到软件缺陷的问题,本文从代码层和界面层出发对待测程序进行分析,提出一种GUI测试模型WEHG,该模型的特点是:1)根据事件处理函数中定义变量和引用变量的数量和给对应的节点设置权重值,从而保证拥有更多变量的节点能够优先生成测试用例;2)根据事件处理函数的定义-引用对给节点之间的依赖关系设置依赖值,使依赖度高的节点能够优先加入测试序列中。对比实验结果表明,该方法能够更快地发现软件中的缺陷,提高测试用例的缺陷探测效率,降低软件测试的成本。 The graphic user interface represents the front-end 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 event-handler 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.
出处 《计算机与现代化》 2018年第4期26-31,共6页 Computer and Modernization
关键词 图形用户界面 测试用例生成 软件测试 graphic user interface test cases generating software testing
  • 相关文献

参考文献5

二级参考文献26

  • 1李翔,高建华.一种基于事件关系的图形用户界面程序测试方法[J].小型微型计算机系统,2005,26(4):671-675. 被引量:7
  • 2靳景玉,朱永贵.基于AHP的风险投资环境各层次因素权重确定[J].技术经济与管理研究,2005(2):33-34. 被引量:11
  • 3WHITE L, ALMEZEN H. Generating test cases for GUI responsibilities using complete interaction sequences [ C]//IEEE Proceedings of the 11th International Symposium on Software Reliability Engineering. Washington, DC: IEEE Press, 2000: 110-121.
  • 4MEMON A M, POLLACK M E, SOFFA M L. Hierachical GUI test case generation using automated planning [ J]. IEEE Transactions on Software Engineering, 2001, 27(2) : 144 - 155.
  • 5JavaCC[ EB/OL]. https://javacc, dev. java. net/, Accessed October 2007.
  • 6JDK1.5 [ EB/OL]. http://java, sun. com/javase/downloads/index. jsp, Accessed March 2008.
  • 7Toshihiro Kamiya, Shinji Kusumoto, Katsuro Inoue. CCFinder: a multilinguistic token-based code clone detection system for large scale source c.ode[ J]. IEEE Transactions on Software Engineering, 2002, 28(7) : 654-670.
  • 8Ira D Baxter, Andrew Yahin, Leonardo Moura, et al. Clone detection using abstract syntax trees[ C]. Proceedings of the Internation- al Conference on Software Maintenance, 1998, 368-377.
  • 9Komondoor R, Horwitz S. Using slicing to identify duplication in source code[ C]. Proceedings of the 8th International Symposium on Static Analysis, 2001, 40 - 56.
  • 10Higo Y, Kamiya T, Kusumoto S, et al. Refactoring support based on code clone analysis[ C]. Proceedings of 5th International Conference on Product Focused Software Process Improvement, April 2004, 220-233.

共引文献25

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部