首页    期刊浏览 2024年09月20日 星期五
登录注册

文章基本信息

  • 标题:Automatic Generation of Test Cases Based on Genetic Algorithm and RBF Neural Network
  • 本地全文:下载
  • 作者:Zhenpeng Liu ; Xianwei Yang ; Shichen Zhang
  • 期刊名称:Mobile Information Systems
  • 印刷版ISSN:1574-017X
  • 出版年度:2022
  • 卷号:2022
  • DOI:10.1155/2022/1489063
  • 语种:English
  • 出版社:Hindawi Publishing Corporation
  • 摘要:Software testing plays an important role in improving the quality of software, but the design of test cases requires a lot of manpower, material resources, and time, and designers tend to be subjective when designing test cases. To solve this problem and make the test cases have objectivity and greater coverage, a branch coverage test case automatic generation method based on genetic algorithm and RBF neural network algorithm (GAR) is proposed. In terms of test case generation, based on the genetic algorithm optimized in this paper, a certain number of test case samples are randomly selected to train the RBF neural network to simulate the fitness function and to calculate the individual fitness value. The experiment uses 7 C language codes to automatically generate test cases and compares the experimental data generated by the branch coverage test case generation method based on adaptive genetic algorithm (PDGA), traditional genetic algorithm (SGA), and random test generation method (random) to evaluate the proposed algorithm. The experimental results show that the method is feasible and effective, the branch coverage is increased in the generation of test cases, and the number of iterations of the population is less.
国家哲学社会科学文献中心版权所有