Affiliation:
1. Taiyuan University of Technology
2. Shanghai Real Eatate School
Abstract
Abstract
Using heuristic method to automatically generate test cases is a research hotspot at present. Although its advantages are obvious, it is slightly insufficient in the selection of optimal individuals. In this paper, aiming at the problems existing in the evaluation and selection of the optimal individual at present, based on the comprehensive analysis of the characteristics of layer proximity and branch distance function, a test case evaluation algorithm combining layer proximity and branch distance function is proposed. The basic idea of this algorithm is to select the individuals with high proximity between the actual execution path and the target path, and then select the individuals with the smallest branch distance in these individuals, so as to obtain the individuals with the best navigation ability. Experiments show that the proposed algorithm can quickly find test cases, especially for the test case generation of multi-layer nested programs.
Publisher
Research Square Platform LLC
Reference19 articles.
1. Li, H., Yulu, Q., Xiaoyue, Y., Complex: & Intelligent Systems.(2022).https://doi.org/10.1007/s40747-022-00880-w
2. Smell detection agent based optimization algorithm;Vinod Chandra SS;J. Insti Eng.,2016
3. A fast and elitist multiobjective genetic algorithm: NSGA-II;Deb K;IEEE Trans. Evol. Comput.,2002
4. A multiobjective evolutionary algorithm based on decomposition;Zhang Q;IEEE Trans. Evol. Comput.,2007
5. Multiobjective evolutionary algorithms: A comparative case study and the Strength Pareto approach;Zitzler E;IEEE Trans. Evol. Comput.,1999