【24h】

Testing Database Applications with SQL Semantics

机译:使用SQL语义测试数据库应用程序

获取原文

摘要

Testing of database applications is crucial for ensuring high software quality as undetected faults can result in unrecoverable data corruption. The problem of database application testing can be broadly partitioned into the problems of test cases generation, test data preparation and test outcomes verification. Among the three problems, the problem of test cases generation directly affects the effectiveness of testing. Conventionally, database application testing is based upon whether or not the application can perform a set of predefined functions. While it is useful to achieve a basic degree of quality by considering the application to be a black box in the testing process, white box testing is required for more thorough testing. However, the semantics of the Structural Query Language (SQL) statements embedded in database applications are rarely considered in conventional white box testing techniques. In this paper, we propose to complement white box techniques with the inclusion of the SQL semantics. Our approach is to transform the embedded SQL statements to procedures in some general-purpose programming language and thereby generate test cases using conventional white box testing techniques. Additional test case that are not covered in traditional white box testing are generated to improve the effectiveness of database application testing. The steps of both SQL statements transformation and test cases generation will be explained and illustrated using an example adapted from a course registration system. We successfully identify additional faults involving the internal states of databases.
机译:数据库应用程序的测试对于确保高软件质量可能导致未恢复的数据损坏可能导致不可恢复的数据损坏至关重要。数据库应用程序测试的问题可以广泛地分区测试案例生成,测试数据准备和测试结果验证。在这三个问题中,测试用例的问题直接影响了测试的有效性。传统上,数据库应用程序测试基于应用程序是否可以执行一组预定义的功能。虽然通过将应用在测试过程中的黑匣子视为一个黑匣子来实现基本质量是有用的,但需要更彻底的测试需要白色盒子测试。但是,在传统的白色盒子测试技术中很少考虑数据库应用程序中嵌入在数据库应用中的结构查询语言(SQL)语句的语义。在本文中,我们建议包含包含SQL语义的白盒技术。我们的方法是将嵌入式SQL语句转换为一些通用编程语言的过程,从而使用传统的白色盒式测试技术生成测试用例。生成额外的测试用例,不会在传统的白色框测试中涵盖,以提高数据库应用程序测试的有效性。将使用从课程注册系统调整的示例解释和说明SQL语句转换和测试用例的步骤。我们成功确定了涉及数据库内部状态的额外故障。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号