Automated test data generation for branch testing using incremental genetic algorithm

被引:8
作者
Manikumar, T. [1 ]
Kumar, A. John Sanjeev [2 ]
Maruthamuthu, R. [1 ]
机构
[1] RVS Coll Engn, Dept Comp Applicat, Dindigul 624005, Tamil Nadu, India
[2] Thiagarajar Coll Engn, Dept Comp Applicat, Madurai 625015, Tamil Nadu, India
来源
SADHANA-ACADEMY PROCEEDINGS IN ENGINEERING SCIENCES | 2016年 / 41卷 / 09期
关键词
Search-based software testing; branch coverage; test data generation; genetic algorithm; SOFTWARE TEST DATA; SCATTER SEARCH; COVERAGE;
D O I
10.1007/s12046-016-0536-1
中图分类号
T [工业技术];
学科分类号
08 ;
摘要
Cost of software testing can be reduced by automated test data generation to find a minimal set of data that has maximum coverage. Search-based software testing (SBST) is one of the techniques recently used for automated testing task. SBST makes use of control flow graph (CFG) and meta-heuristic search algorithms to accomplish the process. This paper focuses on test data generation for branch coverage. A major drawback in using meta-heuristic techniques is that the CFG paths have to be traversed from the starting node to end node for each automated test data. This kind of traversal could be improved by branch ordering, together with elitism. But still the population size and the number of iterations are maintained as the same to keep all the branches alive. In this paper, we present an incremental genetic algorithm (IGA) for branch coverage testing. Initially, a classical genetic algorithm (GA) is used to construct the population with the best parents for each branch node, and the IGA is started with these parents as the initial population. Hence, it is not necessary to maintain a huge population size and large number of iterations to cover all the branches. The performance is analyzed with five benchmark programs studied from the literature. The experimental results indicate that the proposed IGA search technique outperforms the other meta-heuristic search techniques in terms of memory usage and scalability.
引用
收藏
页码:959 / 976
页数:18
相关论文
共 61 条
  • [1] Agarwal Khushboo., 2010, Proceedings of the 3rd India Software Engineering Conference. ISEC'10, P65, DOI DOI 10.1145/1730874.1730888
  • [2] Alander J. T., 1998, ARTIFICIAL NEURAL NE, P325, DOI DOI 10.1007/978-3-7091-6492-1_71
  • [3] Observations in using parallel and sequential evolutionary algorithms for automatic software testing
    Alba, Enrique
    Chicano, Francisco
    [J]. COMPUTERS & OPERATIONS RESEARCH, 2008, 35 (10) : 3161 - 3183
  • [4] Alba Enrique, 1999, Complexity, V4, P31, DOI 10.1002/(SICI)1099-0526(199903/04)4:4<31::AID-CPLX5>3.0.CO
  • [5] 2-4
  • [6] A multiple-population genetic algorithm for branch coverage test data generation
    Alshraideh, Mohammad
    Mahafzah, Basel A.
    Al-Sharaeh, Saleh
    [J]. SOFTWARE QUALITY JOURNAL, 2011, 19 (03) : 489 - 513
  • [7] [Anonymous], 2003, SOFTWARE TESTING TEC
  • [8] [Anonymous], 1995, THESIS
  • [9] [Anonymous], 2009, International Journal of software Engineering and its Applications
  • [10] [Anonymous], 2012, ART SOFTWARE TESTING, DOI DOI 10.1002/9781119202486