An Evolutionary Generation Method of Test Data for Multiple Paths Based on Coverage Balance

被引:2
作者
Fan, Shuping [1 ]
Yao, Nianmin [2 ]
Wan, Li [3 ]
Ma, Baoying [4 ]
Zhang, Yan [1 ]
机构
[1] Mudanjiang Normal Univ, Sch Comp & Informat Technol, Mudanjiang 157011, Peoples R China
[2] Dalian Univ Technol, Sch Comp Sci & Technol, Dalian 116024, Peoples R China
[3] Tianjin Univ, Dept Intelligence & Comp, Tianjin 300350, Peoples R China
[4] Mudanjiang Med Univ, Sch Hlth Management, Mudanjiang 157011, Peoples R China
关键词
Genetic algorithms; Testing; Software; Optimization; Software testing; Software algorithms; Sociology; Keywords software testing; test data generation; multi-path coverage; genetic algorithm; coverage balance;
D O I
10.1109/ACCESS.2021.3089196
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Test data generation is one of the main tasks of software testing. The goal of test data generation based on search algorithms is to automate the task and find test data that meet test criteria. In this study, an evolutionary generation method for test data that cover multiple paths is proposed. Firstly, the method obtains the coverage balance for each target path based on the number of individuals traversing the true and false branches of branch nodes, and calculates the individual's influence on coverage balance before and after an individual joining based on our previous work. Then, according to the number of branch nodes on each target path, the weights of different target paths are designed to obtain the individual fitness to adjust the evolution process and quickly generate test data covering multiple target paths. Finally, the proposed method is compared with existing techniques. Experimental results of benchmark programs and industrial use cases show that the proposed method can effectively improve the efficiency of test data generation for multiple paths.
引用
收藏
页码:86759 / 86772
页数:14
相关论文
共 42 条
  • [1] GA-based multiple paths test data generator
    Ahmed, Moataz A.
    Hermadi, Irman
    [J]. COMPUTERS & OPERATIONS RESEARCH, 2008, 35 (10) : 3107 - 3124
  • [2] Search based software testing of object-oriented containers
    Arcuri, Andrea
    Yao, Xin
    [J]. INFORMATION SCIENCES, 2008, 178 (15) : 3075 - 3095
  • [3] Test suite generation with the Many Independent Objective (MIO) algorithm
    Arcuri, Andrea
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 104 : 195 - 206
  • [4] Becerra RL, 2009, IEEE C EVOL COMPUTAT, P2850, DOI 10.1109/CEC.2009.4983300
  • [5] Using Swarm Intelligence to Generate Test Data for Covering Prime Paths
    Bidgoli, Atieh Monemi
    Haghighi, Hassan
    Nasab, Tahere Zohdi
    Sabouri, Hamideh
    [J]. FUNDAMENTALS OF SOFTWARE ENGINEERING, FSEN 2017, 2017, 10522 : 132 - 147
  • [6] Evolutionary functional testing
    Buehler, Oliver
    Wegener, Joachim
    [J]. COMPUTERS & OPERATIONS RESEARCH, 2008, 35 (10) : 3144 - 3160
  • [7] A novel strategy for automatic test data generation using soft computing technique
    Chawla, Priyanka
    Chana, Inderveer
    Rana, Ajay
    [J]. FRONTIERS OF COMPUTER SCIENCE, 2015, 9 (03) : 346 - 363
  • [8] Automatic Path-oriented Test Data Generation Using a Multi-population Genetic Algorithm
    Chen, Yong
    Zhong, Yong
    [J]. ICNC 2008: FOURTH INTERNATIONAL CONFERENCE ON NATURAL COMPUTATION, VOL 1, PROCEEDINGS, 2008, : 566 - 570
  • [9] Dahiya SS, 2011, LECT NOTES COMPUT SC, V6728, P147, DOI 10.1007/978-3-642-21515-5_18
  • [10] 基于关键点路径的快速测试用例自动生成方法
    丁蕊
    董红斌
    张岩
    冯宪彬
    [J]. 软件学报, 2016, 27 (04) : 814 - 827