Test data generation method based on multiple convergence direction adaptive PSO

被引:4
|
作者
Yang, Feng-yu [1 ,2 ]
Fan, Yong-jian [2 ]
Xiao, Peng [2 ]
Du, Qing [2 ]
机构
[1] Nanjing Univ Aeronaut & Astronaut, Coll Aerosp Engn, Nanjing 210016, Jiangsu, Peoples R China
[2] Nanchang Hangkong Univ, Sch Software, Nanchang 330063, Jiangxi, Peoples R China
基金
中国国家自然科学基金;
关键词
Test data generation; Critical path; Multiple convergence direction adaptive particle swarm optimization; Fine-grained fitness function; ANT COLONY OPTIMIZATION; EVOLUTION;
D O I
10.1007/s11219-022-09605-1
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Automated test data generation is a traditional technique for reducing the cost and time of software testing. Various metaheuristic techniques have been successfully applied for this task. In contrast to the typical metaheuristic algorithms applied for branch and path coverage, this study focused on low resource consumption and efficient information coverage for critical path coverage. First, we combined the characteristics of branch coverage and path coverage to determine a critical path based on quantified path scores. As a result, we constructed a fine-grained fitness function based on the uniform scale branch distance. Second, we proposed an adaptive particle swarm optimization (MCD-APSO) algorithm with multiple convergence directions to accelerate convergence and escape from local optima. The proposed MCD-APSO algorithm improved the global search ability by enriching the diversity of the particle swarm and enhancing the current evolutionary information use of the particles. Finally, to validate the performance of the MCD-APSO algorithm, we compared the proposed algorithm with six test-data generation algorithms on six normal-scale and six large-scale benchmark programs. The results showed that the MCD-APSO algorithm outperforms the benchmark programs regarding the mean number of iterations, total running time, and coverage failure probability.
引用
收藏
页码:279 / 303
页数:25
相关论文
共 50 条
  • [1] Test data generation method based on multiple convergence direction adaptive PSO
    Feng-yu Yang
    Yong-jian Fan
    Peng Xiao
    Qing Du
    Software Quality Journal, 2023, 31 : 279 - 303
  • [2] A Search-Based Test Data Generation Method for Concurrent Programs
    Mirhosseini, Seyed Mohsen
    Haghighi, Hassan
    INTERNATIONAL JOURNAL OF COMPUTATIONAL INTELLIGENCE SYSTEMS, 2020, 13 (01) : 1161 - 1175
  • [3] On the Performance of EvoPSO: a PSO Based Algorithm for Test Data Generation in EvoSuite
    Shahabi, Mohammad Mehdi Dejam
    Badiei, S. Parsa
    Beheshtian, S. Ehsan
    Akbari, Reza
    Moosavi, S. Mohammad Reza
    2017 2ND CONFERENCE ON SWARM INTELLIGENCE AND EVOLUTIONARY COMPUTATION (CSIEC), 2017, : 129 - 134
  • [4] An Evolutionary Generation Method of Test Data for Multiple Paths Based on Coverage Balance
    Fan, Shuping
    Yao, Nianmin
    Wan, Li
    Ma, Baoying
    Zhang, Yan
    IEEE ACCESS, 2021, 9 : 86759 - 86772
  • [5] A new automatic test data generation algorithm based on PSO-ACO
    Zhao, Xiaomin
    Wang, Yiting
    Ding, Xiaoming
    PROCEEDINGS OF THE 4TH INTERNATIONAL CONFERENCE ON MECHATRONICS, MATERIALS, CHEMISTRY AND COMPUTER ENGINEERING 2015 (ICMMCCE 2015), 2015, 39 : 1159 - 1165
  • [6] Test Data Generation for Multiple Paths Based on Local Evolution
    YAO Xiangjuan
    GONG Dunwei
    WANG Wenliang
    Chinese Journal of Electronics, 2015, 24 (01) : 46 - 51
  • [7] Test Data Generation for Multiple Paths Based on Local Evolution
    Yao Xiangjuan
    Gong Dunwei
    Wang Wenliang
    CHINESE JOURNAL OF ELECTRONICS, 2015, 24 (01) : 46 - 51
  • [8] Test data generation with a Kalman filter-based adaptive genetic algorithm
    Aleti, Aldeida
    Grunske, Lars
    JOURNAL OF SYSTEMS AND SOFTWARE, 2015, 103 : 343 - 352
  • [9] A Search-Based Test Data Generation Method for Concurrent Programs
    Seyed Mohsen Mirhosseini
    Hassan Haghighi
    International Journal of Computational Intelligence Systems, 2020, 13 : 1161 - 1175
  • [10] Adaptation oriented test data generation for Adaptive Systems
    Araujo da Silva, Delcio Nonato
    2020 15TH IBERIAN CONFERENCE ON INFORMATION SYSTEMS AND TECHNOLOGIES (CISTI'2020), 2020,