Generating test data for both paths coverage and faults detection using genetic algorithms: multi-path case

作者:Yan Zhang, Dunwei Gong

摘要

Generating test data that can expose the faults of the program is an important issue in software testing. Although previous methods of covering path can generate test data to traverse target path, the test data generated by these methods are difficult in detecting some low-probabilistic faults that lie on the covered paths. We present a method of generating test data for covering multiple paths to detect faults in this study. First, we transform the problem of covering multiple paths and detecting faults into a multi-objective optimization problem with constraint, and construct a mathematical model for it. Then, we give a strategy of solving the model based on a weighted genetic algorithm. Finally, we apply our method to several real-world programs, and compare it with several methods. The experimental results confirm that the proposed method can more efficiently generate test data that not only traverse the target paths but also detect faults lying in them than other methods.

论文关键词:software testing, multiple paths coverage, faults detection, multi-objective optimization

论文评审过程:

论文官网地址:https://doi.org/10.1007/s11704-014-3372-7