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 条
  • [41] Neural Network-Based Generation of Test Data for Interactive Multimodal Applications
    Le Thanh Long
    Nguyen Thanh Binh
    Parissis, Ioannis
    2019 IEEE - RIVF INTERNATIONAL CONFERENCE ON COMPUTING AND COMMUNICATION TECHNOLOGIES (RIVF), 2019, : 191 - 195
  • [42] A Genetic Algorithm-based System for Automatic Control of Test Data Generation
    Pocatilu, Paul
    Ivan, Ion
    STUDIES IN INFORMATICS AND CONTROL, 2013, 22 (02): : 219 - 226
  • [43] Test Data Automatic Generation Based on Modified Condition/Decision Coverage Criteria
    Fan Xin
    Zheng Wei
    Yang Feng-yu
    Liang Qi-jun
    PROCEEDINGS OF THE 2015 INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INTELLIGENT COMMUNICATION, 2015, 16 : 287 - 290
  • [44] An Output-Oriented Approach of Test Data Generation Based on Genetic Algorithm
    Zhang, Weixiang
    Wei, Bo
    Du, Huisen
    ALGORITHMS AND ARCHITECTURES FOR PARALLEL PROCESSING, ICA3PP 2015, 2015, 9532 : 100 - 108
  • [45] Improved algorithm for combinatorial test data generation based on particle swarm optimization
    Wang, Jianfeng
    Sun, Chao
    Jiang, Shouda
    Harbin Gongcheng Daxue Xuebao/Journal of Harbin Engineering University, 2013, 34 (04): : 477 - 482
  • [46] A reasoning-based approach to dynamic domain reduction in test data generation
    Nikravan, Esmaeel
    Parsa, Saeed
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2019, 21 (03) : 351 - 364
  • [47] Search-Based MC/DC Test Data Generation With OCL Constraints
    Sartaj, Hassan
    Iqbal, Muhammad Zohaib
    Jilani, Atif Aftab Ahmed
    Khan, Muhammad Uzair
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2025, 35 (01)
  • [48] Strong Mutation-Based Test Data Generation using Hill Climbing
    Souza, Francisco Carlos M.
    Papadakis, Mike
    Le Traon, Yves
    Delamaro, Marcio E.
    2016 IEEE/ACM 9TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING (SBST), 2016, : 45 - 54
  • [49] A reasoning-based approach to dynamic domain reduction in test data generation
    Esmaeel Nikravan
    Saeed Parsa
    International Journal on Software Tools for Technology Transfer, 2019, 21 : 351 - 364
  • [50] An Approach for Test Data Generation based on Genetic Algorithm and Delete Mutation Operators
    Rani, Shweta
    Suri, Bharti
    2015 SECOND INTERNATIONAL CONFERENCE ON ADVANCES IN COMPUTING AND COMMUNICATION ENGINEERING ICACCE 2015, 2015, : 714 - 718