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 条
  • [21] Forward Slicing Algorithm based Test Data Generation
    Samuel, Philip
    Surendran, Anupama
    PROCEEDINGS OF 2010 3RD IEEE INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INFORMATION TECHNOLOGY (ICCSIT 2010), VOL 8, 2010, : 270 - 274
  • [22] XML-BASED AUTOMATIC TEST DATA GENERATION
    Bulbul, Halil Ibrahim
    Bakir, Turgut
    COMPUTING AND INFORMATICS, 2008, 27 (04) : 681 - 698
  • [23] CONSTRAINT-BASED AUTOMATIC TEST DATA GENERATION
    DEMILLO, RA
    OFFUTT, AJ
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (09) : 900 - 910
  • [24] PSO based test case generation for critical path using improved combined fitness function
    Sahoo, Rashmi Rekha
    Ray, Mitrabinda
    JOURNAL OF KING SAUD UNIVERSITY-COMPUTER AND INFORMATION SCIENCES, 2020, 32 (04) : 479 - 490
  • [25] A New Method of Test Data Generation for Branch Coverage in Software Testing Based on EPDG and Genetic Algorithm
    Chen, Ciyong
    Xu, Xiaofeng
    Chen, Yan
    Li, Xiaochao
    Guo, Donghui
    PROCEEDINGS OF THE 3RD INTERNATIONAL CONFERENCE ON ANTI-COUNTERFEITING, SECURITY, AND IDENTIFICATION IN COMMUNICATION, 2009, : 307 - +
  • [26] Software Security Test Data Generation Based on Genetic Algorithms
    Li, Qiong
    Li, Jinhua
    2009 INTERNATIONAL SYMPOSIUM ON INTELLIGENT INFORMATION SYSTEMS AND APPLICATIONS, PROCEEDINGS, 2009, : 369 - 372
  • [27] Retrospective on: Constraint-Based Automatic Test Data Generation
    Offutt, Jeff
    Demillo, Richard
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2025, 51 (03) : 754 - 758
  • [28] An algorithm for efficient assertions-based test data generation
    Alakeel A.M.
    Journal of Software, 2010, 5 (06) : 644 - 653
  • [29] ONTOLOGY-BASED TEST DATA GENERATION USING METAHEURISTICS
    Szatmari, Zoltan
    Olah, Janos
    Majzik, Istvan
    ICINCO 2011: PROCEEDINGS OF THE 8TH INTERNATIONAL CONFERENCE ON INFORMATICS IN CONTROL, AUTOMATION AND ROBOTICS, VOL 2, 2011, : 217 - 222
  • [30] Path test data generation using adaptive simulated annealing particle swarm optimization
    Jiao, Chongyang
    Zhou, Qinglei
    Soft Computing, 2024, 28 (17-18) : 9587 - 9607