期刊文献+

一种基于动态依赖关系的类集成测试方法 被引量:11

An Approach for Class Integration Testing Based on Dynamic Dependency Relations
下载PDF
导出
摘要 类间集成测试是面向对象软件测试的重要组成部分,合适的测试顺序能够极大地节省测试成本.类间依赖关系构成环路的情况下,需要删除某些依赖关系以消除环路,同时需要引进测试桩.忽略类间动态依赖关系导致测试桩的数目不足,难以完成测试.文中提出一种基于动态依赖关系的类集成测试方法.首先分析了类之间的静态依赖和动态依赖关系;然后在保证测试桩的数目尽可能少的前提下,给出了边的删除规则以及消除由静态依赖关系和动态依赖关系形成的环路的算法,在此基础上,进一步提出测试顺序分配策略和算法;最后针对提出的方法开发了基于测试级的类测试序列自动生成工具——TLOG.实验结果表明:该方法较其它方法需要较少的测试桩,测试效率有明显提高. Class integration testing is an important part in object-oriented software testing. An appropriate test order for software testing can reduce test cost. In the presence of cyclic dependency calls, the test order problem can be solved by removing relationships to break cycles and then create test stubs. There are insufficient test stubs to complete testing if ignoring dynamic dependency relations. In this paper, an approach for class integration testing based on dynamic dependency is proposed. First, inter-class static and dynamic dependencies are analyzed. Then, under the premise of minimizing the number of test stubs, rules of edge deletion are given, in addition, an algorithm of eliminating the cycles that formed by static and dynamic dependency is presented. Furthermore, an integration testing order strategy and an algorithm are given. Finally, the whole approach is implemented in a test levels order generator TLOG. The experiment results show that the method requires less test stubs than others and improves the test efficiency obviously.
出处 《计算机学报》 EI CSCD 北大核心 2011年第6期1075-1089,共15页 Chinese Journal of Computers
基金 国家自然科学基金(60970032) 教育部科学技术研究重点项目(108063) 江苏省自然科学基金(BK2008124) 江苏省"青蓝工程" 江苏省研究生培养创新工程项目(CX10B_157Z)资助
关键词 集成测试 测试顺序 测试桩 动态依赖 测试级 integration testing test order test stubs dynamic dependency test levels
  • 相关文献

参考文献13

  • 1Briand L C, Labiche Y, Wang Y. An investigation of graphbased class integration test order strategies. IEEE Transactions on Software Engineering, 2003, 29(7) : 594-607.
  • 2Briand L, Labiche Y, Wang Y. Revisiting strategies for ordering class integration testing in the presence of dependency cycles//Proceedings of the 12th International Symposium on Software Reliability Engineering. Hong Kong, China, 2001 : 287-297.
  • 3李都.测试顺序选择策略研究[J].计算机工程与设计,2008,29(4):781-783. 被引量:6
  • 4Tarjan R. Depth-first search and linear graph algorithms. SIAM Journal on Computing, 1972, 1(2):146-160.
  • 5Jaroenpiboonkit J, Suwannasart T. Finding a test order using object-oriented slicing teehnique//Proeeedings of the 14th Asia-Pacific Software Engineering Conference. Nagoya, Japan, 2007~ 49-56.
  • 6Wang Zheng-Shan, Li Bi-Xin. Using coupling measure technique and random iterative algorithm for inter-class integration test order problem//Proceedings of the 34th Annual IEEE Computer Software and Applications Conference Workshops. Seoul, Korea, 2010:329-334.
  • 7Kung D C, Gao J, Hsia P. Class firewall test order and regression testing of object oriented programs. Journal of Object-Oriented Programming, 1995, 8(2): 51-65.
  • 8Briand L, Feng J, Labiche Y. Experimenting with genetic algorithms to devise optimal integration test orders. Carleton University, Technical Report SCE-02-03, 2002.
  • 9Malloy B A, Clarke P J, Lloyd E L. A parameterized cost model to order classes for class-based testing of C++ applications//Proeeedings of the 14th International Symposium on Software Reliability Engineering. Denver Colorado, USA, 2003:353-364.
  • 10Tai K C, Daniels F. Test order for inter-class integration testing of object-oriented software//Proeeedings of the 21st International Computer Software and Applications Conference. Washington, DC, USA, 1997:602-607.

二级参考文献8

  • 1Briand L,Feng J, Labiche Y.Experimenting with genetic algorithms and coupling measures to devise optimal test orders[M]. Netherlands: Software Eng with Computational Intelligence, 2003:57-71.
  • 2Briand L,Labiche Y, Wang Y.Revisiting strategies for ordering class integration testing in the presence of dependency cycles [C]. Hongkong: Proc 12th Int'l Syrup Software Reliability Eng (ISSRE),2001:287-296.
  • 3Le Traon Y,Jeron T,Jezequel J-M.et al.Efficient object-oriented integration and regression testing [J]. IEEE Trails Reliability, 2000,49(1):12-25.
  • 4Le Hanh V, Akif K, Le Traon Y, et al.Selecting an efficient OO integration testing strategy; An experimental comparison of actual strategies[C]. Budapest Hungry:Proc 15th European Conf Object-Oriented Programming(ECOOP),2001:381-401.
  • 5Tai K-C,Daniels F J.Interclass test order for object-oriented software [J]. Journal Object-Oriented Programming, 1999,12 (4): 18-25.
  • 6Errol L Lloyd,Brian A Malloy.A study of test coverage adequacy in the presence of stubs[J].Journal of Object Technology,2005,4 (5):117-137.
  • 7Lionel C Briand,Jie Feng, Yvan Labiche.Using genetic algorithms and coupling measures to devise optimal integration test orders[C].Ischia,Italy: Proc SEKE'02,ACM Press,2002:43-50.
  • 8Briand L, Labiche Y, Wand Y. An investigation of graph-based class integration test order strategies [J]. IEEE Transactions on Software Engineering,2003,29(6):594-607.

共引文献5

同被引文献60

引证文献11

二级引证文献39

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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