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 条
  • [31] Automatic Test Generation on the Basis of a Semantic Network
    Dolgova, Elena
    Eriskina, E., V
    Faizrakhmanov, Rustam
    Kasyanova, E. A.
    Kurushin, D. S.
    Nesterova, N. M.
    Soboleva, O., V
    DIGITAL SCIENCE, 2019, 850 : 159 - 165
  • [32] Minimal-Length Interoperability Test Sequences Generation via Genetic Algorithm
    钟宁
    匡镜明
    何遵文
    Journal of Beijing Institute of Technology, 2008, (03) : 341 - 345
  • [33] Minimal-length interoperability test sequences generation via genetic algorithm
    School of Information Science and Technology, Beijing Institute of Technology, Beijing 100081, China
    J Beijing Inst Technol Engl Ed, 2008, 3 (341-345):
  • [34] Automatic generation of test cases based on multi-population genetic algorithm
    Zhang, Na
    Wu, Biao
    Bao, Xiaoan
    International Journal of Multimedia and Ubiquitous Engineering, 2015, 10 (06): : 113 - 122
  • [35] Automatic Generation of Test Cases Based on Genetic Algorithm and RBF Neural Network
    Liu, Zhenpeng
    Yang, Xianwei
    Zhang, Shichen
    Liu, Yi
    Zhao, Yonggang
    Zheng, Weihua
    MOBILE INFORMATION SYSTEMS, 2022, 2022
  • [36] Automatic test data generation tool based on genetic simulated annealing algorithm
    Li Bin
    Li Zhi-Shu
    Chen Yan-Hong
    Li Bao-Lin
    CIS WORKSHOPS 2007: INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY WORKSHOPS, 2007, : 183 - 186
  • [37] A Genetic Algorithm-based System for Automatic Control of Test Data Generation
    Pocatilu, Paul
    Ivan, Ion
    STUDIES IN INFORMATICS AND CONTROL, 2013, 22 (02): : 219 - 226
  • [38] Automatic Test Data Generation Model by Combining Dataflow Analysis with Genetic Algorithm
    Deng, Mingjie
    Chen, Rong
    Du, Zhenjun
    JCPC: 2009 JOINT CONFERENCE ON PERVASIVE COMPUTING, 2009, : 429 - 433
  • [39] Automatic Test Transition Paths Generation Approach from EFSM Using State Tree
    Chen, Yuan
    Wang, Junjie
    Song, Yuanzhang
    Wang, Anbang
    Liu, Luo
    Ha, Qinghua
    2018 IEEE 18TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C), 2018, : 87 - 93
  • [40] Generation of Optimal Coverage Paths for Mobile Robots Using Hybrid Genetic Algorithm
    Schaefle, Tobias Rainer
    Mitschke, Marcel
    Uchiyama, Naoki
    JOURNAL OF ROBOTICS AND MECHATRONICS, 2021, 33 (01) : 11 - 23