首页> 外文期刊>Journal of Information Recording >A Buffered Genetic Algorithm for Automated Branch Coverage in Software Testing
【24h】

A Buffered Genetic Algorithm for Automated Branch Coverage in Software Testing

机译:软件测试中自动分支覆盖的缓冲遗传算法

获取原文
获取原文并翻译 | 示例
       

摘要

Each and every software product has to be tested for assess its quality, which is time-consuming if it is performed manually. Moreover, it is difficult to generate all possible data for finite testing set. Search based Software Testing (SBST) are used to resolve this issue by utilizing metaheuristic algorithms to automate the test data generation. Hence, an efficient test data set could be generated with minimum cost. Among many metaheuristic algorithms, Genetic Algorithm (GA) is widely used for test data generation. This research work implements GA for generating test data to execute all the branches in a program. In the literature, existing approaches for test data generation using genetic algorithms are starts with random test data and find the optimum test data for a targeted branch. Then the entire GA process will be repeated to find the test data for the next target branch and it continues for all the target branches. In this a paper, a novel GA approach with a small buffer space is proposed for automated test data generation for branch coverage. When GA is searching test data for a particular target branch heuristically, it may reach the other target branches, if so happen, then those test data will get stored into the buffer space hence it is not necessary to run GA to cover that branch. Thus the Buffered Genetic Algorithm (BGA) approach outperforms the other GA based automated test data generation approaches in terms of number of iterations and search effectiveness. The proposed approach employs control flow graph to traverse and predicate the branch coverage. Seven benchmark programs are instrumented to evaluate performance of the proposed BGA based approach.
机译:每个软件产品都必须经过测试以评估其质量,如果手动执行,则非常耗时。此外,很难为有限的测试集生成所有可能的数据。基于搜索的软件测试(SBST)用于通过利用元启发式算法自动生成测试数据来解决此问题。因此,可以以最小的成本生成有效的测试数据集。在许多元启发式算法中,遗传算法(GA)被广泛用于测试数据生成。这项研究工作实现了GA,用于生成测试数据以执行程序中的所有分支。在文献中,使用遗传算法生成测试数据的现有方法始于随机测试数据,并找到针对目标分支的最佳测试数据。然后,将重复整个GA过程以找到下一个目标分支的测试数据,并继续针对所有目标分支进行测试。在本文中,提出了一种具有较小缓冲区空间的新颖GA方法,用于为分支覆盖范围自动生成测试数据。当GA试探性地搜索特定目标分支的测试数据时,它可能会到达其他目标分支,如果发生这种情况,则这些测试数据将被存储到缓冲区空间中,因此无需运行GA来覆盖该分支。因此,就迭代次数和搜索效率而言,缓冲遗传算法(BGA)方法优于其他基于GA的自动测试数据生成方法。所提出的方法采用控制流程图来遍历和预测分支覆盖范围。七个基准程序可用来评估基于BGA的方法的性能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号