Model-based test case generation using symbolic execution

Kazuki Munakata, Susumu Tokumoto, T. Uehara
{"title":"Model-based test case generation using symbolic execution","authors":"Kazuki Munakata, Susumu Tokumoto, T. Uehara","doi":"10.1145/2489280.2489282","DOIUrl":null,"url":null,"abstract":"In this paper, we present a test case generation method in which test cases are generated from Excel-based functional specications, called error-check/update specications. This method has the following two characteristics. 1) Logical structures and constraint conditions in error-check/update specications are translated into Java code. Then the trans- lated Java code is executed symbolically. A solution found by solving combinations of the constraint conditions, during the symbolic execution can serve as a test case for the Excel- based specication. 2)We present test case selection method to extract a suitable test-suite from the large number of test cases typically generated by the above symbolic execution. Our test case selection is based on a path condition-based test case selection criterion, proposed in our previous work, in which the selected test cases covers all the atomic conditions of path conditions collected during symbolic execution. In this paper, we extend this method with classication of test cases and priority of variable values with the aim of improv- ing the quality of the selected test-suite. We implemented the test case generation method in our tool and evaluated this method with Excel-based test specications for a real- world nancial system.","PeriodicalId":203209,"journal":{"name":"JAMAICA 2013","volume":"88 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2013-07-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JAMAICA 2013","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2489280.2489282","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

In this paper, we present a test case generation method in which test cases are generated from Excel-based functional specications, called error-check/update specications. This method has the following two characteristics. 1) Logical structures and constraint conditions in error-check/update specications are translated into Java code. Then the trans- lated Java code is executed symbolically. A solution found by solving combinations of the constraint conditions, during the symbolic execution can serve as a test case for the Excel- based specication. 2)We present test case selection method to extract a suitable test-suite from the large number of test cases typically generated by the above symbolic execution. Our test case selection is based on a path condition-based test case selection criterion, proposed in our previous work, in which the selected test cases covers all the atomic conditions of path conditions collected during symbolic execution. In this paper, we extend this method with classication of test cases and priority of variable values with the aim of improv- ing the quality of the selected test-suite. We implemented the test case generation method in our tool and evaluated this method with Excel-based test specications for a real- world nancial system.
使用符号执行生成基于模型的测试用例
在本文中,我们提出了一种测试用例生成方法,其中测试用例是从基于excel的功能规范(称为错误检查/更新规范)中生成的。这种方法有以下两个特点。1)将错误检查/更新规范中的逻辑结构和约束条件转换为Java代码。然后以符号方式执行翻译后的Java代码。在符号执行过程中,通过求解约束条件组合找到的解决方案可以作为基于Excel的规范的测试用例。2)我们提出了测试用例选择方法,从大量的测试用例中提取合适的测试套件,这些测试用例通常是由上述符号执行生成的。我们的测试用例选择是基于路径条件的测试用例选择标准,在我们之前的工作中提出,其中所选的测试用例涵盖了在符号执行期间收集的路径条件的所有原子条件。在本文中,我们扩展了测试用例的分类和变量值的优先级,目的是提高所选测试套件的质量。我们在我们的工具中实现了测试用例生成方法,并使用基于excel的真实世界金融系统的测试规范评估了该方法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信