摘要
现有测试用例自动生成研究中,通常假定无测试用例可供参考,直接由被测软件的源代码或需求规格说明生成满足测试充分性要求的测试用例。论文提出一种基于序列模式挖掘技术的面向对象软件测试用例自动再生成方法,通过挖掘测试用例库获取常用的方法调用子序列作为序列模式,并以所得序列模式为基础构建新的测试用例。实验结果表明采用该方法能够生成有效且可读性良好的测试用例。
For object-oriented software with test repositories,the method invocations of existing test cases can be utilized toguide automated test generation. As a result,the effectiveness and readability of test cases can be enhanced. Thus,this paper pres-ents a strategy to regenerate test cases via mining test repositories. More specifically,sequential pattern mining is employed to ob-tain frequently-used subsequences of method invocations as sequential patterns from corresponding test repositories,and then newtest cases are derived on the basis of the sequential patterns. Empirical results show that this strategy can help to produce new testcases with good readability.
出处
《舰船电子工程》
2017年第12期111-117,共7页
Ship Electronic Engineering
关键词
面向对象软件
序列模式挖掘
演化测试
测试用例再生成
object-oriented software
sequential pattern mining
evolutionary testing
test case regeneration