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 条
[21]   Automatic test data generation based on reduced adaptive particle swarm optimization algorithm [J].
Jiang, Shujuan ;
Shi, Jiaojiao ;
Zhang, Yanmei ;
Han, Han .
NEUROCOMPUTING, 2015, 158 :109-116
[22]   An extensive evaluation of search-based software testing: a review [J].
Khari, Manju ;
Kumar, Prabhat .
SOFT COMPUTING, 2019, 23 (06) :1933-1946
[23]   Optimization of software components selection for component-based software system development [J].
Kwong, C. K. ;
Mu, L. F. ;
Tang, J. F. ;
Luo, X. G. .
COMPUTERS & INDUSTRIAL ENGINEERING, 2010, 58 (04) :618-624
[24]   Search algorithms for regression test case prioritization [J].
Li, Zheng ;
Harman, Mark ;
Hierons, Robert M. .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2007, 33 (04) :225-237
[25]   Automatic test data generation for path testing using GAs [J].
Lin, JC ;
Yeh, PL .
INFORMATION SCIENCES, 2001, 131 (1-4) :47-64
[26]   Automated software test optimisation framework - an artificial bee colony optimisation-based approach [J].
Mala, D. Jeya ;
Mohan, V. ;
Kamalapriya, M. .
IET SOFTWARE, 2010, 4 (05) :334-348
[27]   Test Generation and Test Prioritization for Simulink Models with Dynamic Behavior [J].
Matinnejad, Reza ;
Nejati, Shiva ;
Briand, Lionel C. ;
Bruckmann, Thomas .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2019, 45 (09) :919-944
[28]   Automatic Test Data Generation for Data Flow Testing Using Particle Swarm Optimization [J].
Nayak, Narmada ;
Mohapatra, Durga Prasad .
CONTEMPORARY COMPUTING, PT 2, 2010, 95 :1-12
[29]  
Otto M., 1999, PATTERN RECOGN
[30]   Test Suit Generation for Object Oriented Programs: A Hybrid Firefly and Differential Evolution Approach [J].
Panda, Madhumita ;
Dash, Sujata ;
Nayyar, Anand ;
Bilal, Muhammad ;
Mehmood, Raja Majid .
IEEE ACCESS, 2020, 8 :179167-179188