【24h】

A method for automated unit testing of C programs

机译:一种用于C程序的自动单元测试方法

获取原文

摘要

This research proposes an automated test case generation method for C functions. In this method, the source code is transformed into a control flow graph corresponding to the given coverage criterion. After that, a list of feasible test paths are discovered by traversing the control flow graph using backtracking algorithm, symbolic execution, and Z3 solver. We also generate test cases for functions containing one loop or two-nested loop. A tool supporting the proposed method has been developed and applied to test on some C functions. The experimental results show the high coverage with the minimum number of test cases, the ability to improve the total time of the test case generation with a specified coverage criterion, and the increasing precision of checking the feasibility of test paths if comparing with the random technique. The experimental results display the potential usefulness of this tool for automated test case generation in practice.
机译:本研究提出了一种用于C功能的自动测试壳生成方法。在该方法中,源代码被转换为对应于给定覆盖标准的控制流程图。之后,通过使用回溯算法,符号执行和Z3求解器来遍历控制流程图来发现可行性测试路径列表。我们还为包含一个循环或两嵌套循环的函数生成测试用例。已经开发了一种支持该方法的工具,并应用于某些C功能测试。实验结果表明,具有最小测试用例的高覆盖率,具有提高测试用例的总时间的能力,具有指定的覆盖标准,以及在与随机技术相比,检查测试路径的可行性的提高精度。实验结果显示了该工具在实践中自动测试案件的潜在有用性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号