Automated test case generation based on differential evolution with node branch archive

被引:19
作者
Dai, Xiaohu [1 ]
Gong, Wenyin [1 ]
Gu, Qiong [2 ]
机构
[1] China Univ Geosci, Sch Comp Sci, Wuhan 430074, Peoples R China
[2] Hubei Univ Arts & Sci, Sch Comp Engn, Xiangyang 441053, Peoples R China
基金
中国国家自然科学基金;
关键词
Automated test case generation; Search-based algorithms; Differential evolution; Path coverage; Node branch archive; SELECTION; IFOGSIM; PATHS;
D O I
10.1016/j.cie.2021.107290
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Automatic test case generation (ATCG) is the active research topic in software testing engineering, which can greatly reduce the cost of software testing. In automated test case generation for path coverage (ATCG-PC) problem, since the relationship between test cases and paths is unknown, there are many redundant test cases in the test case set to meet the path coverage criteria. In many previous studies on search-based algorithms for ATCG-PC, researchers have focused on improving the search-based algorithms itself or designing a more suitable fitness function according to the coverage criteria. However, the relationship between test cases and paths can help search-based algorithms cover more paths. The values of some specific test case dimensions change, and offspring individuals may cover different paths. Inspired by this, we proposed a node branch archive strategy, which can record the relationship between node branch direction and the value of test case variables, and cover more paths through this driven search-based algorithms. The experimental results show that compared with other state-of-the-art algorithms, the differential evolution with node branch archive (NBAr-DE) can significantly reduce the number of redundant test cases.
引用
收藏
页数:13
相关论文
共 39 条
[1]   An orchestrated survey of methodologies for automated software test case generation [J].
Anand, Saswat ;
Burke, Edmund K. ;
Chen, Tsong Yueh ;
Clark, John ;
Cohen, Myra B. ;
Grieskamp, Wolfgang ;
Harman, Mark ;
Harrold, Mary Jean ;
McMinn, Phil ;
Bertolino, Antonia ;
Li, J. Jenny ;
Zhu, Hong .
JOURNAL OF SYSTEMS AND SOFTWARE, 2013, 86 (08) :1978-2001
[2]  
Bouchachia Abdelhamid, 2007, 7th International Conference on Hybrid Intelligent Systems, HIS 2007, P84
[3]   Self-adapting control parameters in differential evolution: A comparative study on numerical benchmark problems [J].
Brest, Janez ;
Greiner, Saso ;
Boskovic, Borko ;
Mernik, Marjan ;
Zumer, Vijern .
IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION, 2006, 10 (06) :646-657
[4]   An Empirical Study on Mutation, Statement and Branch Coverage Fault Revelation that Avoids the Unreliable Clean Program Assumption [J].
Chekam, Thierry Titcheu ;
Papadakis, Mike ;
Le Traon, Yves ;
Harman, Mark .
2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2017, :597-608
[5]   The Symposium on Search-Based Software Eengineering: Past, Present and Future [J].
Colanzi, Thelma Elita ;
Assuncao, Wesley K. G. ;
Vergilio, Silvia R. ;
Farah, Paulo Roberto ;
Guizzo, Giovani .
INFORMATION AND SOFTWARE TECHNOLOGY, 2020, 127
[6]  
Demsar J, 2006, J MACH LEARN RES, V7, P1
[7]   Whole Test Suite Generation [J].
Fraser, Gordon ;
Arcuri, Andrea .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (02) :276-291
[8]   The Risks of Coverage-Directed Test Case Generation [J].
Gay, Gregory ;
Staats, Matt ;
Whalen, Michael ;
Heimdahl, Mats P. E. .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (08) :803-819
[9]  
Girgis MR, 2015, Int J Comput Appl, V116
[10]   Adaptive Ranking Mutation Operator Based Differential Evolution for Constrained Optimization [J].
Gong, Wenyin ;
Cai, Zhihua ;
Liang, Dingwen .
IEEE TRANSACTIONS ON CYBERNETICS, 2015, 45 (04) :716-727