On Complexity of All-Paths Test Generation: From Practice to Theory

N. Kosmatov
{"title":"On Complexity of All-Paths Test Generation: From Practice to Theory","authors":"N. Kosmatov","doi":"10.1109/TAICPART.2009.26","DOIUrl":null,"url":null,"abstract":"Automatic structural testing of programs becomes more and more popularin software engineering. Among the most rigorous structural coverage criteria,all-paths coveragerequires to generate a set of test cases such that every feasible execution path of the program under test is executed by one test case. This article addresses different aspects of computabilityand complexity of constraint-based all-paths test generation forC programs from the practitioner's point of view, and tries to bridge the gap between mathematical theory and practical computation problems arising in this domain. We focus on two particular classes of programs important for practice. We show first that for a class containing the simplest programs with strong restrictions, all-paths test generation in polynomial time is possible.For a wider class of programs in which inputs may beused as array indices (or pointer offsets), all-paths test generation is shown to be NP-hard. Some experimental results illustrating test generation timefor programs of these classes are provided.","PeriodicalId":339626,"journal":{"name":"2009 Testing: Academic and Industrial Conference - Practice and Research Techniques","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2009-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2009 Testing: Academic and Industrial Conference - Practice and Research Techniques","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/TAICPART.2009.26","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Automatic structural testing of programs becomes more and more popularin software engineering. Among the most rigorous structural coverage criteria,all-paths coveragerequires to generate a set of test cases such that every feasible execution path of the program under test is executed by one test case. This article addresses different aspects of computabilityand complexity of constraint-based all-paths test generation forC programs from the practitioner's point of view, and tries to bridge the gap between mathematical theory and practical computation problems arising in this domain. We focus on two particular classes of programs important for practice. We show first that for a class containing the simplest programs with strong restrictions, all-paths test generation in polynomial time is possible.For a wider class of programs in which inputs may beused as array indices (or pointer offsets), all-paths test generation is shown to be NP-hard. Some experimental results illustrating test generation timefor programs of these classes are provided.
论全路径测试生成的复杂性:从实践到理论
程序的自动结构测试在软件工程中越来越普及。在最严格的结构覆盖标准中,全路径覆盖要求生成一组测试用例,这样被测程序的每个可行执行路径都由一个测试用例执行。本文从实践者的角度讨论了基于约束的全路径测试生成c程序的可计算性和复杂性的不同方面,并试图弥合这一领域中出现的数学理论和实际计算问题之间的差距。我们将重点介绍对实践很重要的两类程序。我们首先证明了对于包含最简单程序的类,具有强约束,在多项式时间内生成全路径测试是可能的。对于输入可能用作数组索引(或指针偏移量)的更广泛的程序类,全路径测试生成显示为np困难。给出了这些类程序的测试生成时间的一些实验结果。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信