arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1202.6120cs.SE
收藏

将SMT求解器应用于测试模板框架

Applying SMT Solvers to the Test Template Framework

Maximiliano Cristiá, Claudia Frydman

摘要:

测试模板框架(TTF)是一种基于模型的Z符号测试方法。在TTF中,测试用例是从测试规范生成的,测试规范是用Z编写的谓词。反过来,Z符号是基于一阶逻辑与等式和Zermelo-Fraenkel集合理论。这样,一个测试用例就是一个满足该理论中公式的见证。可满足性模理论(SMT)求解器是一种软件工具,用于确定大量内置逻辑理论及其组合中任意公式的可满足性。在本文中,我们提出了第一个结果,应用两个SMT求解器,Yices和CVC 3,作为引擎,从TTF的测试规范中找到测试用例。在这样做时,提供了将Z符号的重要部分浅嵌入到Yices和CVC 3的输入语言中,假设它们不直接支持Z中定义的Zermelo-Fraenkel集合理论。最后,应用这些嵌入的测试规格的8个案例研究的结果进行了分析。

英文摘要:

The Test Template Framework (TTF) is a model-based testing method for the Z notation. In the TTF, test cases are generated from test specifications, which are predicates written in Z. In turn, the Z notation is based on first-order logic with equality and Zermelo-Fraenkel set theory. In this way, a test case is a witness satisfying a formula in that theory. Satisfiability Modulo Theory (SMT) solvers are software tools that decide the satisfiability of arbitrary formulas in a large number of built-in logical theories and their combination. In this paper, we present the first results of applying two SMT solvers, Yices and CVC3, as the engines to find test cases from TTF's test specifications. In doing so, shallow embeddings of a significant portion of the Z notation into the input languages of Yices and CVC3 are provided, given that they do not directly support Zermelo-Fraenkel set theory as defined in Z. Finally, the results of applying these embeddings to a number of test specifications of eight cases studies are analysed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑