【24h】

Generation of all-paths unit test with function calls

机译:使用函数调用生成所有路径单元测试

获取原文
获取外文期刊封面目录资料

摘要

Structural testing is usually restricted to unit tests andbased on some clear definition of source code coverage. Inparticular, the all-paths criterion, which requires at leastone test-case per feasible path of the function under test,is recognised as offering a high level of software reliabil-ity. This paper deals with the difficulties of using structuralunit testing to test functions which call other functions. Tolimit the resulting combinatorial explosion in the number ofpaths, we choose to abstract the called functions by theirspecification. We incorporate the functional information onthe called functions within the structural information on thefunction under test, given as a control flow graph (CFG).This representation combining functional and structural de-scriptions may be viewed as an extension of the classic CFGand allows us to characterise test selection criteria ensur-ing the coverage of the source code of the function undertest. Two new criteria will be proposed. The first criterioncorresponds to the coverage of all the paths of this new rep-resentation, including all the paths arising from the func-tional description of the called functions. The second cri-terion covers all the feasible paths of the function undertest only. We describe how we automate test-data genera-tion with respect to such grey-box (combinations of black-box and white-box) test selection strategies, and we applythe resulting extension of our PathCrawler tool to examplescoded in the C language.
机译:结构测试通常仅限于单位测试,并在源代码覆盖范围的一些明确定义上进行了处理。 inparticular,所有都是根据测试功能的可行路径的至少一个测试用例的全能路径标准被识别为提供高水平的软件赖换。本文涉及使用结构的测试来测试函数调用其他功能的困难。 Tolimit在路径数量中产生的组合爆炸,我们选择通过他们的特定抽象所谓的功能。我们将有关所谓的功能信息的功能信息纳入关于被测功能的结构信息中的函数信息,作为控制流程图(CFG)。这种表示功能和结构去脚本可以被视为经典CFGAND的扩展,允许我们表征测试选择标准确保函数源代码的覆盖作业。将提出两个新标准。对应于这种新的REP怨恨的所有路径的覆盖范围的第一个标准,包括所谓的功能的功能描述所产生的所有路径。第二个CRI-TERION涵盖了该职能的所有可行性路径。我们描述了如何如何为这种灰盒(黑匣子和白盒)测试选择策略的这种灰盒(Black and With-Box的组合)进行自动化测试数据,并且我们应用了我们的PathCrawler工具的延伸,以便在C语言中查看。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号