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 条
  • [41] A theoretical & empirical znalysis of evolutionary testing and hill climbing for structural test data generation
    Harman, Mark
    McMinn, Phil
    ACM Int. Symp. Softw. Test. Anal., 2007, (73-83): : 73 - 83
  • [42] Scalability analysis of Grammatical Evolution Based Test Data Generation
    Anjum, Muhammad Sheraz
    Ryan, Conor
    GECCO'20: PROCEEDINGS OF THE 2020 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2020, : 1213 - 1221
  • [43] Test-data generation directed by program path coverage through imperialist competitive algorithm
    Saadatjoo, Mohammad Ali
    Babamir, Seyed Morteza
    SCIENCE OF COMPUTER PROGRAMMING, 2019, 184
  • [44] A Search Based Test Data Generation Approach for Model Transformations
    Jilani, Atif Aftab
    Iqbal, Muhammad Zohaib
    Khan, Muhammad Uzair
    THEORY AND PRACTICE OF MODEL TRANSFORMATIONS, ICMT 2014, 2014, 8568 : 17 - 24
  • [45] 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
  • [46] PAIRWISE TEST DATA GENERATION BASED ON FLOWER POLLINATION ALGORITHM
    Nasser, Abdullah B.
    Alsewari, AbdulRahman A.
    Tairan, Nasser M.
    Zamli, Kamal Z.
    MALAYSIAN JOURNAL OF COMPUTER SCIENCE, 2017, 30 (03) : 242 - 257
  • [47] Retrospective on: Constraint-Based Automatic Test Data Generation
    Offutt, Jeff
    Demillo, Richard
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2025, 51 (03) : 754 - 758
  • [48] An algorithm for efficient assertions-based test data generation
    Alakeel A.M.
    Journal of Software, 2010, 5 (06) : 644 - 653
  • [49] Cloud-based automatic test data generation framework
    Chawla, Priyanka
    Chana, Inderveer
    Rana, Ajay
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2016, 82 (05) : 712 - 738
  • [50] Automatic Test Data Generation Using Particle Systems
    Bueno, Paulo M. S.
    Wong, W. Eric
    Jino, Mario
    APPLIED COMPUTING 2008, VOLS 1-3, 2008, : 809 - +