Constraint-Based Test Case Generation for White-Box Method-Level Unit Testing

Chen-Huei Chang, Nai-Wei Lin
{"title":"Constraint-Based Test Case Generation for White-Box Method-Level Unit Testing","authors":"Chen-Huei Chang, Nai-Wei Lin","doi":"10.1109/ICS.2016.0123","DOIUrl":null,"url":null,"abstract":"This paper introduces a unified constraint-based test case generator for white-box method-level unit testing. The derivation of a suite of test cases can be defined as a constraint satisfaction problem. Each test case consists of a test input and an expected output. The program is automatically transformed into a constraint model called constraint logic graph. The constraint logic graph is a succinct graphical representation of the system of constraints that defines the relationships between the test inputs and actual outputs. The suite of test inputs can be solved from the conjunction of constraints on each complete path of the constraint logic graph by a constraint logic programming language. The specification of a method is defined by the Object Constraint Language. This non-executable specification is automatically transformed into an executable specification defined by a constraint logic programming language. This executable specification serves as the test oracle to automatically generate the corresponding expected output for a given test input.","PeriodicalId":281088,"journal":{"name":"2016 International Computer Symposium (ICS)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 International Computer Symposium (ICS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICS.2016.0123","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

This paper introduces a unified constraint-based test case generator for white-box method-level unit testing. The derivation of a suite of test cases can be defined as a constraint satisfaction problem. Each test case consists of a test input and an expected output. The program is automatically transformed into a constraint model called constraint logic graph. The constraint logic graph is a succinct graphical representation of the system of constraints that defines the relationships between the test inputs and actual outputs. The suite of test inputs can be solved from the conjunction of constraints on each complete path of the constraint logic graph by a constraint logic programming language. The specification of a method is defined by the Object Constraint Language. This non-executable specification is automatically transformed into an executable specification defined by a constraint logic programming language. This executable specification serves as the test oracle to automatically generate the corresponding expected output for a given test input.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
白盒方法级单元测试中基于约束的测试用例生成
本文介绍了一种用于白盒方法级单元测试的统一的基于约束的测试用例生成器。一组测试用例的派生可以定义为约束满足问题。每个测试用例由一个测试输入和一个预期输出组成。程序自动转换为约束模型,称为约束逻辑图。约束逻辑图是约束系统的简洁图形表示,它定义了测试输入和实际输出之间的关系。通过约束逻辑编程语言将约束逻辑图的每条完整路径上的约束合在一起求解测试输入集。方法的规范由对象约束语言定义。这个不可执行的规范被自动转换成由约束逻辑编程语言定义的可执行规范。这个可执行的规范作为测试oracle,为给定的测试输入自动生成相应的预期输出。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Resource Allocation Algorithms for LTE over Wi-Fi Spectrum A Dynamically Adjusted Vehicles Navigation Scheme with Real-Time Traffic Information to Relieve Regional Traffic Congestion in Vehicular Ad-Hoc Networks Forward/Backward Unforgeable Digital Signature Scheme Using Symmetric-Key Crypto-System Mobile Edge Fog Computing in 5G Era: Architecture and Implementation Investigating the Determinants of Mobile Learning Acceptance in Higher Education Based on UTAUT
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1