Test-data generation directed by program path coverage through imperialist competitive algorithm

被引:11
作者
Saadatjoo, Mohammad Ali [1 ]
Babamir, Seyed Morteza [1 ]
机构
[1] Univ Kashan, Dept Comp Engn, Kashan, Iran
关键词
Structural testing; Path coverage; Test data generation; Evolutionary algorithm (EA); Imperialist Competitive Algorithm (ICA); Mutation testing; ANOVA; T-test; OPTIMIZATION; SELECTION;
D O I
10.1016/j.scico.2019.102304
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Path coverage testing is an approach to ensure all paths of a program from starting node to terminal node are traversed at least once. Such testing considerably helps reveal program faults. However, disregarding iterated paths in loops, any module of a program with n decisions can have up to 2(n) paths. Therefore, finding adequate test data to cover all or most of such paths throughout a program with numerous modules is an NP-Hard problem because it requires an exhaustive search among all possible data. Another concern is determining the efficiency and adequacy of test data according to the coverage criterion. For the path coverage criterion, a test data set is fully efficient if each item of the set covers a separate program path and is fully adequate if the test data cover all program paths. Providing such test data for a program is a very time-consuming action when the program has high complexity (i.e., many paths). A candidate solution for these problems is using Evolutionary Algorithms (EAs). We use an EA named the Imperialist Competitive Algorithm (ICA) to generate test data and assess its effectiveness based on both path coverage and discovered faults. The focus here is on the EA cost function, because it influences the generation of adequate test data. Considering the nondeterministic nature of the EAs in data reproduction, several experiments are carried out by applying statistical tests, ANOVA and T-test to indicate the significant difference between them in producing efficient test data. (C) 2019 Elsevier B.V. All rights reserved.
引用
收藏
页数:19
相关论文
共 50 条
  • [1] Agrawal H., 1989, SERCTR41P PURD U PRO
  • [2] GA-based multiple paths test data generator
    Ahmed, Moataz A.
    Hermadi, Irman
    [J]. COMPUTERS & OPERATIONS RESEARCH, 2008, 35 (10) : 3107 - 3124
  • [3] Amirsadri S., 2014, METAHEURISTICS ENG
  • [4] Ammann P., 2008, INTRO SOFTWARE TESTI
  • [5] [Anonymous], 2011, PROCEDIA ENG
  • [6] [Anonymous], 2011, ADV INFORM SCI SERVI
  • [7] [Anonymous], 2014, P 11 WORKSH EXP SOFT
  • [8] [Anonymous], 2015, Probability and statistical inference
  • [9] [Anonymous], 2009, ENG STAT
  • [10] Many Independent Objective (MIO) Algorithm for Test Suite Generation
    Arcuri, Andrea
    [J]. SEARCH BASED SOFTWARE ENGINEERING, SSBSE 2017, 2017, 10452 : 3 - 17