首页> 外文会议>IEEE/ACM international conference on automated software engineering 2010 >Automated SQL Query Generation for Systematic Testing of Database Engines
【24h】

Automated SQL Query Generation for Systematic Testing of Database Engines

机译:用于数据库引擎系统测试的自动SQL查询生成

获取原文
获取原文并翻译 | 示例

摘要

We present a novel approach for generating syntactically and se-mantically correct SQL queries for testing relational database systems. We leverage the SAT-based Alloy tool-set to reduce the problem of generating valid SQL queries into a SAT problem. Our approach translates SQL query constraints into Alloy models, which enable it to generate valid queries that cannot be automatically generated using conventional grammar-based generators. Given a database schema, our new approach combined with our previous work on ADUSA, automatically generates (1) syntactically and semantically valid SQL queries for testing, (2) input data to populate test databases, and (3) expected result of executing the given query on the generated data. Experimental results show that not only can we automatically generate valid queries which detect bugs in database engines, but also we are able to combine this work with our previous work on ADUSA to automatically generate input queries and tables as well as expected query execution outputs to enable automated testing of database engines.
机译:我们提出了一种新颖的方法来生成语法和语义正确的SQL查询以测试关系数据库系统。我们利用基于SAT的Alloy工具集来减少将有效SQL查询生成为SAT问题的问题。我们的方法将SQL查询约束转换为Alloy模型,从而使其能够生成有效的查询,而这些查询无法使用常规的基于语法的生成器自动生成。在给定数据库模式的情况下,我们的新方法结合我们先前在ADUSA上的工作,会自动生成(1)语法和语义上有效的SQL查询以进行测试,(2)输入数据以填充测试数据库以及(3)执行给定的预期结果查询生成的数据。实验结果表明,我们不仅可以自动生成有效的查询来检测数据库引擎中的错误,而且还可以将此工作与我们以前在ADUSA上进行的工作相结合,以自动生成输入查询和表以及预期的查询执行输出以启用数据库引擎的自动化测试。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号