融合变异测试的路径覆盖测试数据进化生成方法  

An Evolutionary Generation Method for Path Coverage Test Data based on Mutation Testing

在线阅读下载全文

作  者:党向盈[1] 李金凤[1] DANG Xiangying;LI Jinfeng(School of Information Engineering,Xuzhou University of Technology,Xuzhou 221018,China)

机构地区:[1]徐州工程学院信息工程学院,江苏徐州221018

出  处:《软件工程》2023年第1期46-49,共4页Software Engineering

基  金:江苏省高等学校自然科学研究重大项目(21KJA520006);徐州市科技计划项目(KC21007)。

摘  要:针对检测缺陷的测试数据生成效率低下问题,提出变异测试和路径覆盖测试技术结合的测试数据生成方法。首先,采用变异测试技术生成的变异分支融入程序,生成新的被测程序;然后,在原路径集中挑选目标路径,通过分析变异分支与路径关联关系,将变异分支融入路径。最后,基于遗传算法生成覆盖路径的测试数据。实验结果表明,多种群遗传算法生成测试数据的时间,比单种群遗传算法节约了41.15%。由此可见,对于覆盖多路径测试数据生成,多种群遗传算法的效率比单种群遗传算法高。Aiming at the low efficiency of test data generation for defect detection,this paper proposes a test data generation method combining mutation testing and path coverage testing.Firstly,the mutation branches generated by mutation testing technology are incorporated into the original program to generate a new program under test.Then,some paths of the original program are selected as the target paths,and the mutation branches are integrated into the target path by the correlation between mutation branches and paths.Finally,Test results show that the time of generating test data by Multi Population Genetic Algorithm(MGA)is 41.15% less than that by Single Population Genetic Algorithm(SGA).It can be seen that the efficiency of MGA is higher than that of SGA for test data generation of multi-path coverage.

关 键 词:软件测试 变异测试 测试数据生成 遗传算法 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象