系统测试数据生成的实用约束求解
Practical Constraint Solving for Generating System Test Data
摘要:
生成测试数据的能力通常是自动化软件测试的必要先决条件。为了使生成的数据符合其预期目的,数据通常必须满足各种逻辑约束。当在系统级执行测试时,这些约束往往是复杂的,并且通常在基于一阶逻辑的表达形式中被捕获。出于提高系统测试的数据生成的可行性和可扩展性,我们提出了一种新的方法,即我们采用元启发式搜索和可满足性模理论(SMT)的约束求解相结合。我们的方法委托约束求解任务,以元启发式搜索和SMT在这样一种方式,以利用这两种技术的互补优势。我们的工作基于UML中指定的测试数据模型,并使用OCL作为约束语言。我们目前的工具支持和评估我们的方法超过三个工业案例研究。结果表明,对于复杂的系统测试数据生成问题,我们的方法在适用性和可扩展性方面比现有技术有很大的优势。
英文摘要:
The ability to generate test data is often a necessary prerequisite for automated software testing. For the generated data to be fit for its intended purpose, the data usually has to satisfy various logical constraints. When testing is performed at a system level, these constraints tend to be complex and are typically captured in expressive formalisms based on first-order logic. Motivated by improving the feasibility and scalability of data generation for system testing, we present a novel approach, whereby we employ a combination of metaheuristic search and Satisfiability Modulo Theories (SMT) for constraint solving. Our approach delegates constraint solving tasks to metaheuristic search and SMT in such a way as to take advantage of the complementary strengths of the two techniques. We ground our work on test data models specified in UML, with OCL used as the constraint language. We present tool support and an evaluation of our approach over three industrial case studies. The results indicate that, for complex system test data generation problems, our approach presents substantial benefits over the state of the art in terms of applicability and scalability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。