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 条
  • [21] Generating Test Data for Both Paths Coverage and Faults Detection Using Genetic Algorithms
    Gong, Dun-wei
    Zhang, Yan
    ADVANCED INTELLIGENT COMPUTING THEORIES AND APPLICATIONS: WITH ASPECTS OF ARTIFICIAL INTELLIGENCE, 2012, 6839 : 664 - 671
  • [22] Evolutionary approach to generating test data for data flow test
    Jiang, Shujuan
    Chen, Jieqiong
    Zhang, Yanmei
    Qian, Junyan
    Wang, Rongcun
    Xue, Meng
    IET SOFTWARE, 2018, 12 (04) : 318 - 323
  • [23] GA-based multiple paths test data generator
    Ahmed, Moataz A.
    Hermadi, Irman
    COMPUTERS & OPERATIONS RESEARCH, 2008, 35 (10) : 3107 - 3124
  • [24] Search-Based Software Test Data Generation for Path Coverage Based on a Feedback-Directed Mechanism
    Semujju S.D.
    Huang H.
    Liu F.
    Xiang Y.
    Hao Z.
    Complex System Modeling and Simulation, 2023, 3 (01): : 12 - 31
  • [25] Search-based Multi-paths Test Data Generation for Structure-oriented Testing
    Cao, Yang
    Hu, Chunhua
    Li, Luming
    WORLD SUMMIT ON GENETIC AND EVOLUTIONARY COMPUTATION (GEC 09), 2009, : 25 - 32
  • [26] Evolutionary Algorithm for Prioritized Pairwise Test Data Generation
    Ferrer, Javier
    Kruese, Peter
    Chicano, Francisco
    Alba, Enrique
    PROCEEDINGS OF THE FOURTEENTH INTERNATIONAL CONFERENCE ON GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2012, : 1213 - 1220
  • [27] Evolutionary test data generation: a comparison of fitness functions
    Watkins, A
    Hufnagel, EM
    SOFTWARE-PRACTICE & EXPERIENCE, 2006, 36 (01) : 95 - 116
  • [28] Test data generation based on automatic division of path
    Liao W.-Z.
    Liao, Wei-Zhi (weizhiliao2002@aliyun.com), 1600, Chinese Institute of Electronics (44): : 2254 - 2261
  • [29] Test Data Generation for Path Coverage of MPI Programs Using SAEO
    Gong, Dunwei
    Sun, Baicai
    Yao, Xiangjuan
    Tian, Tian
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2021, 30 (02)
  • [30] An Enhanced Set-based Evolutionary Algorithm for Generating Test Data that Cover Multiple Paths of a Parallel Program
    Tian, Tian
    Yang, Su
    Gong, Dunwei
    2018 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (IEEE SSCI), 2018, : 688 - 695