Automatic generation of basis test paths using variable length genetic algorithm

被引:47
|
作者
Ghiduk, Ahmed S. [1 ,2 ]
机构
[1] Taif Univ, Coll Comp & Informat Technol, At Taif, Saudi Arabia
[2] Beni Suef Univ, Fac Sci, Dept Math & Comp Sci, Bani Suwayf, Egypt
关键词
Software engineering; Genetic algorithm; Basis path testing; Test path generation; SOFTWARE TEST DATA;
D O I
10.1016/j.ipl.2014.01.009
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Path testing is the strongest coverage criterion in white box testing. Finding target paths is a key challenge in path testing. Genetic algorithms have been successfully used in many software testing activities such as generating test data, selecting test cases and test cases prioritization. In this paper, we introduce a new genetic algorithm for generating test paths. In this algorithm the length of the chromosome varies from iteration to another according to the change in the length of the path. Based on the proposed algorithm, we present a new technique for automatically generating a set of basis test paths which can be used as testing paths in any path testing method. The proposed technique uses a method to verify the independency of the generated paths to be included in the basis set of paths. In addition, this technique employs a method for checking the feasibility of the generated paths. We introduce new definitions for the key concepts of genetic algorithm such as chromosome representation, crossover, mutation, and fitness function to be compatible with path generation. In addition, we present a case study to show the efficiency of our technique. We conducted a set of experiments to evaluate the effectiveness of the proposed path generation technique. The results showed that the proposed technique causes substantial reduction in path generation effort, and that the proposed GA algorithm is effective in test path generation. (c) 2014 Elsevier B.V. All rights reserved.
引用
下载
收藏
页码:304 / 316
页数:13
相关论文
共 50 条
  • [1] Automatic Test Data Generation Using a Genetic Algorithm
    Aleb, Nassima
    Kechid, Samir
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2013, PT II, 2013, 7972 : 574 - 586
  • [2] Automatic test data generation for program paths using genetic algorithms
    Bueno, PMS
    Jino, M
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2002, 12 (06) : 691 - 709
  • [3] Study of an Improved Genetic Algorithm for Multiple Paths Automatic Software Test Case Generation
    Zhu, Erzhou
    Yao, Chenglong
    Ma, Zhujuan
    Liu, Feng
    ADVANCES IN SWARM INTELLIGENCE, ICSI 2017, PT I, 2017, 10385 : 402 - 408
  • [4] Automatic Generation of Basis Test Path Using Clonal Selection Algorithm
    Vivekanandan, K.
    Megala, T.
    Chandini, P.
    2016 INTERNATIONAL CONFERENCE ON INFORMATION COMMUNICATION AND EMBEDDED SYSTEMS (ICICES), 2016,
  • [5] Automatic structural test data generation using immune genetic algorithm
    Yong, Chen
    Yong, Zhong
    Bao Sheng-Li
    He Fa-Mei
    PROCEEDINGS OF THE INTERNATIONAL CONFERENCE INFORMATION COMPUTING AND AUTOMATION, VOLS 1-3, 2008, : 688 - 690
  • [6] An Improved Genetic Algorithm for Test Cases Generation Oriented Paths
    Mei Jia
    Wang Shengyuan
    CHINESE JOURNAL OF ELECTRONICS, 2014, 23 (03) : 494 - 498
  • [7] An Improved Genetic Algorithm for Test Cases Generation Oriented Paths
    MEI Jia
    WANG Shengyuan
    Chinese Journal of Electronics, 2014, 23 (03) : 494 - 498
  • [8] Automatic test data generation for data flow testing using a genetic algorithm
    Girgis, MR
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2005, 11 (06) : 898 - 915
  • [9] Automatic Test Path Generation from Sequence Diagram Using Genetic Algorithm
    Hoseini, Bahare
    Jalili, Saeed
    2014 7TH INTERNATIONAL SYMPOSIUM ON TELECOMMUNICATIONS (IST), 2014, : 106 - 111
  • [10] Automatic test data generation using genetic algorithm and program dependence graphs
    Miller, James
    Reformat, Marek
    Zhang, Howard
    INFORMATION AND SOFTWARE TECHNOLOGY, 2006, 48 (07) : 586 - 605