摘要
为提高软件测试的效率和覆盖率,对测试用例的生成方法进行了研究。以等价类划分等测试用例生成方法为基础,提出把接口参数分成环境参数和状态参数,针对这两种不同性质的参数分析测试用例生成的影响,并分别建立测试用例生成算法模型,据此在实际应用中将两者的作用融合起来生成简约测试用例集。在覆盖率相同的条件下,生成的平均测试用例数量是传统生成测试用例方法的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.
出处
《光学精密工程》
EI
CAS
CSCD
北大核心
2009年第7期1678-1685,共8页
Optics and Precision Engineering
基金
国家863高技术研究发展计划资助项目(No.2007AA703112)
关键词
软件测试
测试用例
参数融合
配置项
约简
software testing
test case
parameter fusion
configuration item
reduction