摘要
针对面向对象语言的多态、动态绑定等特性增加了面向对象软件集成测试难度的问题,提出了一种测试用例的生成方法.首先借鉴正交矩阵测试策略的思想,采用自定义正交矩阵生成算法生成一个二维正交矩阵,再使用鲁棒性测试方法优化生成正交矩阵,最后采用自定义测试用例生成算法为面向对象软件的集成测试生成测试用例集,并将测试用例集用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