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

面向测试数据生成的字符串约束逻辑程序设计

Towards Constraint Logic Programming over Strings for Test Data Generation

Sebastian Krings, Joshua Schmidt, Patrick Skowronek, Jannik Dunkelau, Dierk Ehmke

摘要:

为了正确地测试软件,需要一定质量的测试数据。然而,有用的测试数据通常是不可用的:现有的或手工制作的数据可能不够多样化,无法实现所需的测试用例。此外,由于安全或隐私问题或其他法规,可能会禁止使用生产数据。同时,用于测试数据生成的现有工具通常是有限的。在本文中,我们评估在何种程度上约束逻辑编程可以用来生成测试数据,特别是字符串集中。要做到这一点,我们介绍了一个原型CLP求解器字符串约束。作为案例研究,我们使用它来生成IBAN号码和日期。

英文摘要:

In order to properly test software, test data of a certain quality is needed. However, useful test data is often unavailable: Existing or hand-crafted data might not be diverse enough to enable desired test cases. Furthermore, using production data might be prohibited due to security or privacy concerns or other regulations. At the same time, existing tools for test data generation are often limited. In this paper, we evaluate to what extent constraint logic programming can be used to generate test data, focussing on strings in particular. To do so, we introduce a prototypical CLP solver over string constraints. As case studies, we use it to generate IBAN numbers and calender dates.

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

↑