微计算机信息
微計算機信息
미계산궤신식
CONTROL & AUTOMATION
2010年
6期
196-197,192
,共3页
软件测试%组合覆盖%测试用例生成%算法
軟件測試%組閤覆蓋%測試用例生成%算法
연건측시%조합복개%측시용례생성%산법
software testing%combinatorial cover%test data generation%algorithm
本文针对多因素二水平系统提出:将所有的测试数据表示为一棵二叉解空间树,用回溯法对二叉解空间树进行路径搜索来生成测试用例,然后使用贪心算法生成补充的测试用例,以满足两两组合覆盖标准.使用这种方法生成的测试数据集具有很高的覆盖率.
本文針對多因素二水平繫統提齣:將所有的測試數據錶示為一棵二扠解空間樹,用迴溯法對二扠解空間樹進行路徑搜索來生成測試用例,然後使用貪心算法生成補充的測試用例,以滿足兩兩組閤覆蓋標準.使用這種方法生成的測試數據集具有很高的覆蓋率.
본문침대다인소이수평계통제출:장소유적측시수거표시위일과이차해공간수,용회소법대이차해공간수진행로경수색래생성측시용례,연후사용탐심산법생성보충적측시용례,이만족량량조합복개표준.사용저충방법생성적측시수거집구유흔고적복개솔.
This paper represents a method based on the solution space B-tree to produce test data for combination testing, which is and for System with Many 2-level factor, Pairwise testing is practical and effective for various types of software systems, and it is a key problem to generate test data for the pairwise coverage criterion. This paper represents all feasible test data as a solution space b-tree based on the combinatorial testing model, and suggests a backtrack approach to search a subset of paths in the b-tree for pairwise testing data generation. Then some test data may be added into the test data suite by a greedy algorithm to cover all the uncovered pairs. The empirical results show that the approach has high coverage rate.