Focusing on the problem that the features of multimode and dynamic binding of object-oriented 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 self-defined 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.
关键词
Keywords
references
Smith M D, Robson D J. A framework for testing object-oriented programs [J]. Journal of Object-Oriented Programming,1992, 5(3):45-53.
Sun Yuxia, Chen Huoyan. Design and implementation of a dynamic testing tool for object-oriented software at cluster level [J]. Mini-micro Systems,2003,24(3):376-379.
Chen Wing-Kwong, Chen Tsong-Yueh, Tse T H. An overview of integration testing techniques for object-oriented 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.
Chen 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.
Leung 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.
McGregor J D, Dyer D M. A note on inheritance and state machines [J]. Software Engineering Notes,1993, 18(4):61-69.
Mandl R. Orthogonal latin squares: an application of experiment design to compiler testing [J]. Communications of the ACM, 1985, 28(10):1054-1058.
McGregor J D, Sykes D A.面向对象的软件测试 [M]. 杨文宏,李新辉,杨洁,译. 北京:机械出版社,2002.
Phadke M S. Quality engineering using robust design[M]. Englewood Cliffs,USA: Prentice Hall, 1989.
Raghavarao D. Constructions and combinatorial problems in design of experiments [M]. New York: John Wiley Sons Inc.,1971.