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 条
  • [31] Test Data Generation Based on Test Path Discovery Using Intelligent Water Drop
    Srivastava, Praveen Ranjan
    Patel, Amitkumar
    Patel, Kunal
    Vijaywargiya, Prateek
    INTERNATIONAL JOURNAL OF APPLIED METAHEURISTIC COMPUTING, 2012, 3 (02) : 56 - 74
  • [32] AUTOMATIC PRODUCTION OF TEST DATA WITH A MULTIPLE BATCH-OPTIMISTIC METHOD
    Sofokleous, Anastasis A.
    Andreou, Andreas S.
    INTERNATIONAL JOURNAL ON ARTIFICIAL INTELLIGENCE TOOLS, 2009, 18 (01) : 61 - 80
  • [33] Set evolution based test data generation for killing stubborn mutants
    Wei, Changqing
    Yao, Xiangjuan
    Gong, Dunwei
    Liu, Huai
    Dang, Xiangying
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 216
  • [34] Evolutionary generation of test data for EFSM based on irrelevant variable separation
    Pan X.
    Hao S.
    Yuan Z.
    Song N.
    Beijing Hangkong Hangtian Daxue Xuebao/Journal of Beijing University of Aeronautics and Astronautics, 2019, 45 (05): : 919 - 929
  • [35] Mutated Specification-Based Test Data Generation with a Genetic Algorithm
    Wang, Rong
    Sato, Yuji
    Liu, Shaoying
    MATHEMATICS, 2021, 9 (04) : 1 - 19
  • [36] Test Data Generation Algorithm of Combinatorial Testing Based on Differential Evolution
    Wang Jianfeng
    Wei Chang'an
    Jiang Shouda
    2013 THIRD INTERNATIONAL CONFERENCE ON INSTRUMENTATION & MEASUREMENT, COMPUTER, COMMUNICATION AND CONTROL (IMCCC), 2013, : 544 - 548
  • [37] Design-Model-Based Test Data Generation for Database Applications
    Tanno, Haruto
    Zhang, Xiaojing
    Hoshino, Takashi
    23RD IEEE INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSRE 2012), 2012, : 201 - 206
  • [38] An EFSM-Based Test Data Generation Approach in Model-Based Testing
    Mohd-Shafie, Muhammad Luqman
    Kadir, Wan Mohd Nasir Wan
    Khatibsyarbini, Muhammad
    Isa, Mohd Adham
    Ghani, Israr
    Ruslai, Husni
    CMC-COMPUTERS MATERIALS & CONTINUA, 2022, 71 (03): : 4337 - 4354
  • [39] Automatic generation of test data in IMX system based on GA-ACO
    Feng X.
    Hao H.-M.
    1600, Beijing University of Posts and Telecommunications (39): : 99 - 103
  • [40] Machine Learning Based Test Data Generation for Safety-Critical Software
    Cegin, Jan
    PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, : 1678 - 1681