Evolutionary generation of test data for paths coverage based on scarce data capturing

被引:0
|
作者
机构
[1] School of Information and Electrical Engineering, China University of Mining and Technology, Xuzhou
[2] School of Technology, Mudanjiang Normal University, Mudanjiang
来源
Zhang, Y. (zhangyancumt@126.com) | 1600年 / Science Press卷 / 36期
关键词
Fitness adjustment; Genetic algorithms; Path coverage; Scarce data; Software testing;
D O I
10.3724/SP.J.1016.2013.02429
中图分类号
学科分类号
摘要
Using genetic algorithms to generate test data for path coverage is a hot topic in software testing automation. The established fitness functions of previous methods cannot provide adequate protection to a scarce datum which covers a node difficult to be covered, so the efficiency of generating test data needs to be improved. In this study, scarce data are dynamically captured during the evolutionary generation of test data. We obtain the contribution of an individual by counting up the number of individuals which traverse each node of the target path, and regard this contribution as a weight to adjust the fitness of the individual. In this way, the fitness of a scarce datum can be increased and the scarce datum can be kept in the subsequent evolution, so the efficiency of generating test data is improved. The proposed method is applied to generate test data for covering paths of two benchmark and six industrial programs, and is compared with traditional and random methods. The experimental results confirm that the proposed method is efficient in generating test data for path coverage.
引用
收藏
页码:2429 / 2440
页数:11
相关论文
共 50 条
  • [31] Automatic near-optimal generation of software test data for critical paths
    Abdi, Mina
    Mardukhi, Farhad
    JOURNAL OF SUPERCOMPUTING, 2025, 81 (05)
  • [32] An Adequacy Based Test Data Generation Technique Using Genetic Algorithms
    Malhotra, Ruchika
    Garg, Mohit
    JOURNAL OF INFORMATION PROCESSING SYSTEMS, 2011, 7 (02): : 363 - 384
  • [33] A feedback-directed method of evolutionary test data generation for parallel programs
    Gong, Dunwei
    Pan, Feng
    Tian, Tian
    Yang, Su
    Meng, Fanlin
    INFORMATION AND SOFTWARE TECHNOLOGY, 2020, 124
  • [34] Generating test data for both path coverage and fault detection using genetic algorithms
    Gong, Dunwei
    Zhang, Yan
    FRONTIERS OF COMPUTER SCIENCE, 2013, 7 (06) : 822 - 837
  • [35] Generating test data for both path coverage and fault detection using genetic algorithms
    Dunwei Gong
    Yan Zhang
    Frontiers of Computer Science, 2013, 7 : 822 - 837
  • [36] CONSTRAINT-BASED AUTOMATIC TEST DATA GENERATION
    DEMILLO, RA
    OFFUTT, AJ
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (09) : 900 - 910
  • [37] Automatic software test data generation for spanning sets coverage using genetic algorithms
    Khamis, Abdelaziz M.
    Girgis, Moheb R.
    Ghiduk, Ahmed S.
    COMPUTING AND INFORMATICS, 2007, 26 (04) : 383 - 401
  • [38] Test Data Generation of Path Coverage B ased on Negative Selection Genetic Algorithm
    Xia C.-Y.
    Zhang Y.
    Wan L.
    Song Y.
    Xiao N.
    Guo B.
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2019, 47 (12): : 2630 - 2638
  • [39] Automatic detection of infeasible ALL-DU paths in the data flow test using an evolutionary approach
    Cheraghi, Azam
    Hasheminejad, Seyed Mohammad Hossein
    2020 6TH IRANIAN CONFERENCE ON SIGNAL PROCESSING AND INTELLIGENT SYSTEMS (ICSPIS), 2020,
  • [40] Automatic test data generation for data flow testing using a genetic algorithm
    Girgis, MR
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2005, 11 (06) : 898 - 915