首页> 外文会议>International workshop on structured object-oriented formal language and method >Automatic Generation of Specification-Based Test Cases by Applying Genetic Algorithms in Reinforcement Learning
【24h】

Automatic Generation of Specification-Based Test Cases by Applying Genetic Algorithms in Reinforcement Learning

机译:在强化学习中应用遗传算法自动生成基于规范的测试用例

获取原文

摘要

Automatic test pattern generation by applying genetic algorithms in reinforcement learning is proposed and the results of evaluation with an ATM system which assuming the existence of a bug related to a global variable are reported. For software development based on formal specifications, a number of methods for the automatic generation of test cases have previously been proposed. However, most of those methods are for testing whether or not the specifications are correctly implemented, and the problem of automatically generating test cases for which all of the paths can be traversed, including paths that were not anticipated, remains unsolved. We have previously demonstrated the feasibility of using genetic algorithms as an effective approach to that problem by evaluation with a simple test problem that assumes a single-variable input and evaluation assuming that the total number of paths is known. Here, we use a genetic algorithm in which the test cases are used as the gene locus values in the chromosome with redundant gene length and the difference vector is used for performing mutation. We compare this approach to the pairwise method and the vibration method, which are leading research areas, in a more realistic testing environment such as evaluation of ATM system programs. We show that the proposed method can provide higher program path coverage than the previous methods and effectively generates test cases for a bug related to a global variable.
机译:提出了通过在强化学习中应用遗传算法来自动生成测试模式的方法,并报告了假设存在与全局变量有关的错误的ATM系统的评估结果。对于基于正式规范的软件开发,以前已经提出了许多自动生成测试用例的方法。但是,这些方法中的大多数用于测试规范是否正确实现,并且自动生成可以遍历所有路径(包括未预料到的路径)的测试用例的问题仍然没有解决。之前,我们已经通过使用简单的测试问题进行评估,证明了使用遗传算法作为该问题的有效方法的可行性,该简单测试问题假设单变量输入,并且假设已知路径总数,因此进行评估。在这里,我们使用一种遗传算法,其中将测试用例用作具有冗余基因长度的染色体中的基因位点值,并使用差异向量进行突变。我们在更现实的测试环境(例如ATM系统程序的评估)中将这种方法与成对方法和振动方法进行比较,这是领先的研究领域。我们表明,与以前的方法相比,所提出的方法可以提供更高的程序路径覆盖率,并有效地生成与全局变量相关的bug的测试用例。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号