光学精密工程
光學精密工程
광학정밀공정
OPTICS AND PRECISION ENGINEERING
2009年
7期
1678-1685
,共8页
王俊杰%沈湘衡%张波%权巍%陈磊
王俊傑%瀋湘衡%張波%權巍%陳磊
왕준걸%침상형%장파%권외%진뢰
软件测试%测试用例%参数融合%配置项%约简
軟件測試%測試用例%參數融閤%配置項%約簡
연건측시%측시용례%삼수융합%배치항%약간
software testing%test case%parameter fusion%configuration item%reduction
为提高软件测试的效率和覆盖率,对测试用例的生成方法进行了研究.以等价类划分等测试用例生成方法为基础,提出把接口参数分成环境参数和状态参数,针对这两种不同性质的参数分析测试用例生成的影响,并分别建立测试用例生成算法模型,据此在实际应用中将两者的作用融合起来生成简约测试用例集.在覆盖率相同的条件下,生成的平均测试用例数量是传统生成测试用例方法的1/5,达到了用更少的测试用例覆盖更多测试需求的目的.
為提高軟件測試的效率和覆蓋率,對測試用例的生成方法進行瞭研究.以等價類劃分等測試用例生成方法為基礎,提齣把接口參數分成環境參數和狀態參數,針對這兩種不同性質的參數分析測試用例生成的影響,併分彆建立測試用例生成算法模型,據此在實際應用中將兩者的作用融閤起來生成簡約測試用例集.在覆蓋率相同的條件下,生成的平均測試用例數量是傳統生成測試用例方法的1/5,達到瞭用更少的測試用例覆蓋更多測試需求的目的.
위제고연건측시적효솔화복개솔,대측시용례적생성방법진행료연구.이등개류화분등측시용례생성방법위기출,제출파접구삼수분성배경삼수화상태삼수,침대저량충불동성질적삼수분석측시용례생성적영향,병분별건립측시용례생성산법모형,거차재실제응용중장량자적작용융합기래생성간약측시용례집.재복개솔상동적조건하,생성적평균측시용례수량시전통생성측시용례방법적1/5,체도료용경소적측시용례복개경다측시수구적목적.
With the aim to improve the efficiency and the coverage rate of the software testing,the generation methods of the test cases are researched. On the basis of the test methods such as equivalence classifications, this paper presents a technique to divide the interface parameters into two types, environment parameters and state parameters. Then, the effect of two different parameters with different characters on the generation of testing cases is analyzed and their algorithm models are established respectively. According to all of these, the reducible test cases are generated by fusing their functions in practice. Experimental results show that the test cases generated by the proposed method is one fifth as high as those of traditional generation methods at the same coverage rate,which reaches the purpose of covering more test demands with fewer test cases.