A New Approach to Generating High Quality Test Cases

A New Approach to Generating High Quality Test Cases
复制标题

DOI:
10.1109/ats.2010.21
复制
发表时间:
2010-12
期刊:
2010 19th IEEE Asian Test Symposium
影响因子:
--
通讯作者:
Pan Liu;Huai-kou Miao
Pan Liu;Huai-kou Miao
中科院分区:
其他
文献类型:
--
作者:
Pan Liu;Huai-kou Miao

文献摘要

被引文献

相似文献

高质量的测试用例可以有效地检测软件错误,保证软件质量。然而,除基于正则表达式的测试生成方法外,其他基于模型的测试生成方法生成的测试用例都没有包含模型的全部信息,导致测试不充分。而由正则表达式派生的测试用例具有禁止的长度,导致测试成本的持续增加。为了获得高质量的测试用例,我们提出了一种新的测试生成方法,通过正则表达式分解。与以往的模型分解技术不同,我们的方法强调正则表达式分解后的信息完整性。基于两个经验假设,我们提出了两个正则表达式分解过程和三个分解规则。然后,我们进行了案例研究,以证明我们的方法。实验结果表明,该方法生成了高质量的测试用例,同时避免了测试复杂度问题。
High quality test cases can effectively detect software errors and ensure software quality. However, except the regular expression-based test generation method, test cases generated from other model-based test generation methods have not contain the whole information of the model, resulting in test inadequacy. And test cases derived from regular expression have the prohibited lengths that cause the sustainable increase of test cost. To obtain high quality test cases, we suggest a new method for test generation by way of regular expression decomposition. Unlike the previous model decomposition techniques, our method lays emphasis on information completeness after regular expression is decomposed. Based on two empirical assumptions, we propose two processes of regular expression decomposition and three decomposition rules. Then we perform a case study to demonstrate our approach. The results show that our approach generates high quality test cases as well as avoids the problem of test complexity.