期刊文献+

软件集成测试中的一种用例生成方法 被引量:4

Method for Generating Test Cases in Software Integration Testing
下载PDF
导出
摘要 针对面向对象语言的多态、动态绑定等特性增加了面向对象软件集成测试难度的问题,提出了一种测试用例的生成方法.首先借鉴正交矩阵测试策略的思想,采用自定义正交矩阵生成算法生成一个二维正交矩阵,再使用鲁棒性测试方法优化生成正交矩阵,最后采用自定义测试用例生成算法为面向对象软件的集成测试生成测试用例集,并将测试用例集用XML文档保存,以备下一步测试用例复用.经验证表明,使用正交矩阵能提高错误检测能力,用其生成的测试用例比较少且方法简单、易于实现. Focusing on the problem that the features of multimode and dynamic binding of objectoriented software increase the difficulty of integration test, a novel method for generating test cases is presented. Firstly benefiting from the idea of OATS (orthogonal matrix testing strategy), a 2D orthogonal matrix is created according to self-defined orthogonal matrix generation algorithm. Then the generated orthogonal matrix is optimized by using robustness test. Finally, the testing case set is created for the object-oriented software integration test using the selfdefined test cases generation algorithm, and the cases sets are saved with XML documents for reusing in next step testing. The experiments show that the ability of error detection is improved with orthogonal matrix, the generated cases are less, and the proposed method is simple and easy to be realized.
出处 《西安交通大学学报》 EI CAS CSCD 北大核心 2007年第12期1427-1430,1502,共5页 Journal of Xi'an Jiaotong University
基金 国家自然科学基金重点资助项目(40537031) 国家自然科学基金资助项目(40375010 60278019)
关键词 面向对象软件 集成测试 正交矩阵测试 用例生成方法 object-oriented software integration testing orthogonal matrix testing case generation method
  • 相关文献

参考文献10

  • 1Smith M D, Robson D J. A framework for testing object-oriented programs[J]. Journal of Object-Oriented Programming, 1992, 5(3):45-53.
  • 2孙玉霞,陈火炎.面向对象软件簇级的一种动态测试工具的设计与实现[J].小型微型计算机系统,2003,24(3):376-379. 被引量:2
  • 3Chen Wing-Kwong, Chen Tsong-Yueh, Tse T H. An overview of integration testing techniques for objectoriented programs[C]//Proceedings of the 2nd ACIS Annual International Conference on Computer and Information Science. Pleasant, USA: International Association for Computer and Information Science, 2002: 116-122.
  • 4Chen Huoyan, Tse T H, Chen Tsong-Yueh. TACCLE: a methodology for object-oriented software testing at the class and cluster levels[J]. ACM Transactions on Software Engineering and Methodology, 2001, 10(1):56-109.
  • 5Leung H K N, White L. A study of integration testing and software regression at the integration level [C]// Proceedings of Conference on Software Maintenance. Los Alamitos, USA: IEEE Computer Society, 1990: 290-301.
  • 6McGregor J D, Dyer D M. A note on inheritance and state machines [J ]. Software Engineering Notes, 1993, 18(4):61-69.
  • 7Mandl R. Orthogonal latin squares: an application of experiment design to compiler testing [J]. Communications of the ACM, 1985, 28(10) : 1054-1058.
  • 8MCGREGOR J D,SYKES D A.面向对象的软件测试[M].杨文宏,李新辉,杨洁,译.北京:机械工业出版社,2002.
  • 9Phadke M S. Quality engineering using robust design[M]. Englewood Cliffs,USA: Prentice Hall, 1989.
  • 10Raghavarao D. Constructions and combinatorial problems in design of experiments [M]. New York:John Wiley & Sons Inc., 1971.

二级参考文献6

  • 1[1]Smith MD and Robson, D J. A framework for testing object-oriented programs[J]. Journal of Object-Oriented Programming, 1992,5(3):45~53
  • 2[2]Chen Huo-yan- Tse T H and Chen T Y. TACCLE: a methodology for objected-oriented software testing at the class and cluster levels[J]. ACM Tran sactions on Software Engineering and Methodology, 2001, 10(1):56~109.
  • 3[3]Chen Huo-yan, Tse T H and Deng Yue-tang. ROCS: an object-oriented class-level testing system based on the relevant observable contexts technique [J]. Information and Software Technology, 2000,42(10):677~686.
  • 4[4]Helm R.Holland I M and D Gangopadhyay.Contracts:specifying behavioral compositions in object-oriented systems[C]. In Proceedings of 5th Annual Conference on Objected-Oriented Programming Systems,Languages,and Applications(OOPSL A'90), ACM SIGPLAN Notices, 1990, 169~180.
  • 5[5]Chen Huo-yan.A dynamic approach for object-oriented cluster-level tests by program instrumentation[C]. In Proceedings of IEEE SMC'2000, Nashville, USA, 2000, 1030~1035.
  • 6[6]Schildt H, The craft of C: take-charge programming[M]. Osborne McGraw-Hill, Berkeley, California, 1992.

共引文献4

同被引文献30

引证文献4

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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