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 条
  • [21] Automatic Test Case Generation based on Genetic Algorithm and Mutation Analysis
    Haga, Hirohide
    Suehiro, Akihisa
    2012 IEEE INTERNATIONAL CONFERENCE ON CONTROL SYSTEM, COMPUTING AND ENGINEERING (ICCSCE 2012), 2012, : 119 - 123
  • [22] Genetic Algorithm for Automatic Generation of Representative Test Suite for Mutation Testing
    Rao, C. Prakasa
    Govindarajulu, P.
    INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND NETWORK SECURITY, 2015, 15 (02): : 11 - 17
  • [23] Generation of Automatic Test Cases with Mutation Analysis and Hybrid Genetic Algorithm
    Khan, Rijwan
    Amjad, Mohd
    Srivastava, Akhilesh Kumar
    2017 3RD IEEE INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE & COMMUNICATION TECHNOLOGY (CICT), 2017,
  • [24] Optimization of Automatic Regulator Settings of the Distributed Generation Plants on the basis of Genetic Algorithm
    Bulatov, Yu. N.
    Kryukov, A., V
    2016 2ND INTERNATIONAL CONFERENCE ON INDUSTRIAL ENGINEERING, APPLICATIONS AND MANUFACTURING (ICIEAM), 2016,
  • [25] Renewable Scenario Generation Based on the Hybrid Genetic Algorithm with Variable Chromosome Length
    Liu, Xiaoming
    Wang, Liang
    Cao, Yongji
    Ma, Ruicong
    Wang, Yao
    Li, Changgang
    Liu, Rui
    Zou, Shihao
    ENERGIES, 2023, 16 (07)
  • [26] Generation of Pairwise Test Sets using a Genetic Algorithm
    McCaffrey, James D.
    2009 IEEE 33RD INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, VOLS 1 AND 2, 2009, : 620 - 625
  • [27] Automatic test pattern generation using trapezium reduce algorithm
    Meng, HX
    Shi, WC
    ICEMI '97 - CONFERENCE PROCEEDINGS: THIRD INTERNATIONAL CONFERENCE ON ELECTRONIC MEASUREMENT & INSTRUMENTS, 1997, : 99 - 104
  • [28] Fuzuli: Automatic Test Data Generation for Software Structural Testing using Grey Wolf Optimization Algorithm and Genetic Algorithm
    Arasteh, Bahman
    Sattari, Mohammad Reza
    Kalan, Reza Shokri
    2022 IEEE INTL CONF ON DEPENDABLE, AUTONOMIC AND SECURE COMPUTING, INTL CONF ON PERVASIVE INTELLIGENCE AND COMPUTING, INTL CONF ON CLOUD AND BIG DATA COMPUTING, INTL CONF ON CYBER SCIENCE AND TECHNOLOGY CONGRESS (DASC/PICOM/CBDCOM/CYBERSCITECH), 2022, : 194 - 199
  • [29] Automatic generation of neural network structures using genetic algorithm
    Spisiak, M
    Kozak, S
    NEURAL NETWORK WORLD, 2005, 15 (05) : 381 - 394
  • [30] Automatic Path-oriented Test Data Generation Using a Multi-population Genetic Algorithm
    Chen, Yong
    Zhong, Yong
    ICNC 2008: FOURTH INTERNATIONAL CONFERENCE ON NATURAL COMPUTATION, VOL 1, PROCEEDINGS, 2008, : 566 - 570