Foundation Item(s): Foundation Item(s): National Natural Science Foundation of China(62262025);Jiangxi Provincial Natural Science Foundation(20224ACB202012)
QIAN Zhong-sheng,CHENG Yi-wei,YU Qing-yuan,et al.An Approach to Multi-Path Coverage Testing Based on Key Edge Probability and Path Layer Proximity[J].ACTA ELECTRONICA SINICA,2023,51(05):1341-1349.
QIAN Zhong-sheng,CHENG Yi-wei,YU Qing-yuan,et al.An Approach to Multi-Path Coverage Testing Based on Key Edge Probability and Path Layer Proximity[J].ACTA ELECTRONICA SINICA,2023,51(05):1341-1349. DOI: 10.12263/DZXB.20220983.
An Approach to Multi-Path Coverage Testing Based on Key Edge Probability and Path Layer Proximity
Using genetic algorithms to solve the problem of difficultly-covered edges in multi-path coverage is a hot research spot in the current field of automatic test data generation. An approach to multi-path coverage testing that combines the key edge probability and path layer proximity is proposed
for the existing methods are not efficient enough to solve the multi-path coverage problem. Firstly
it calculates the probabilities of the nodes being traversed to get difficultly-covered nodes
and then finds difficultly-covered edges (i.e.
key edges)
so as to generate the target paths. Secondly
the individual contribution is calculated according to the key edge probability
and the path layer proximity is computed through the path layer graph of the program
and then the fitness function is designed from the individual contribution and the path layer proximity. Finally
multi-population genetic algorithm is employed to generate test data in order to cover the target paths. After the subpopulation covers the current target path in the evolution process
it continues to try to cover other paths similar to the current target path. Experimental results show that compared with those similar classic methods
this approach guarantees an improved stability besides dominant average generation time and average evolution time. The standard deviation of the generation time increase is lower than the optimal one by 10.19%
and the variation coefficient is lessen by 10.79%. The standard deviation of evolutionary time increase is lower than the optimal one by 19.98%
and the variation coefficient is decreased by 28.02%.
关键词
Keywords
references
SHARIFIPOUR H , SHAKERI M , HAGHIGHI H . Structural test data generation using a memetic ant colony optimization based on evolution strategies [J]. Swarm & Evolutionary Computation , 2018 , 40 ( 6 ): 76 - 91 .
JATANA N , SURI B . Particle swarm and genetic algorithm applied to mutation testing for test data generation: A comparative evaluation [J]. Journal of King Saud University-Computer and Information Sciences , 2020 , 2 ( 4 ): 514 - 521 .
QIAN Zhong-sheng , YU Qing-yuan , SONG Tao , et al . Test case generation and reuse based on support vector machine regression model [J]. Acta Electronica Sinica , 2021 , 49 ( 7 ): 1386 - 1391 . (in Chinese)
FAN Shu-ping , ZHANG Yan , MA Bao-ying , et al . Evolutionary generation of test data for paths coverage based on balance optimization theory [J]. Acta Electronica Sinica , 2020 , 48 ( 7 ): 1303 - 1310 . (in Chinese)
QIAN Zhong-sheng , ZHU Jie , ZHU Yi-min , et al . Multi-path coverage strategy combining key point probability and path similarity [J]. Journal of Software , 2022 , 33 ( 2 ): 434 - 454 . (in Chinese)
QIAN Zhongsheng , HONG Dafei , ZHAO Chang , et al . A strategy for multi-target paths coverage by improving individual information sharing [J]. KSII Transactions on Internet and Information Systems , 2019 , 13 ( 11 ): 5464 - 5488 .
DU Ying , SUN Bai-cai , GONG Dun-wei , et al . Optimization model of path selection for software testing and its evolution-based solution [J]. Journal of Software , 2022 , 33 ( 9 ): 3297 - 3311 . (in Chinese)
DANG Xiangying , GONG Dunwei , YAO Xiangjuan , et al . Enhancement of mutation testing via fuzzy clustering and multi-population genetic algorithm [J]. IEEE Transactions on Software Engineering , 2022 , 48 ( 6 ): 2141 - 2156 .
SUN Baicai , GONG Dunwei , TIAN Tian , et al . Integrating an ensemble surrogate model's estimation into test data generation [J]. IEEE Transactions on Software Engineering , 2022 , 48 ( 4 ): 1336 - 1350 .
KALAIPRIYAN T , RAJESWARI M , DEBNATH B , et al . Directed artificial bee colony algorithm with revamped search strategy to solve global numerical optimization problems [J]. Automated Software Engineering , 2022 , 29 ( 1 ): 13 .