首页> 外文会议>Software Engineering >AUTOMATIC CONTROL FLOW BASED GENERATION OF STUBS FOR STRUCTURAL TESTING
【24h】

AUTOMATIC CONTROL FLOW BASED GENERATION OF STUBS FOR STRUCTURAL TESTING

机译:基于自动控制流的结构测试桩生成

获取原文

摘要

Automatic generation of test cases ensuring statement or branch coverage requires selecting a procedure and a set of test data based on source code analysis. This process considers not only the code of the procedure itself but also the code of all the procedures called. When the number of procedure calls increases, the process becomes inefficient. A practical solution is to replace procedure calls with user-defined stubs. Such stubs have two main drawbacks: First, as the values they return are not necessarily realistic, the covered statements or branches may be unreachable in the real program. Second, they may cause program failures that would not have happened if the real function or procedure was used. As a result, the cost of testing increases, as more failures must be analyzed. We propose a new approach to automatically generate stubs for structural testing as layered hierarchies of approximations. We give an algorithm, based on Feasible Path Analysis, extracting approximations of a procedure and building a hierarchy that allows for efficient test data generation. We implemented this algorithm at the top of the test data generator INKA .
机译:自动生成测试用例以确保语句或分支覆盖范围需要根据源代码分析选择一个过程和一组测试数据。该过程不仅考虑过程本身的代码,而且考虑所有被调用过程的代码。当过程调用的数量增加时,该过程将变得效率低下。实际的解决方案是用用户定义的存根替换过程调用。这样的存根有两个主要缺点:首先,由于它们返回的值不一定是真实的,因此在实际程序中可能无法覆盖所覆盖的语句或分支。其次,如果使用实际功能或过程,它们可能会导致程序失败。结果,随着必须分析更多的故障,测试的成本增加了。我们提出了一种新方法,可以自动生成用于结构测试的存根,作为近似的分层层次结构。我们提供了一种基于可行路径分析的算法,该算法可提取过程的近似值并建立可有效生成测试数据的层次结构。我们在测试数据生成器INKA的顶部实现了该算法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号