Testing Data Consistency of Data-Intensive Applications Using QuickCheck

被引:5
作者
Castro, Laura M. [1 ]
Arts, Thomas [2 ]
机构
[1] Univ A Coruna, Dept Comp Sci, La Coruna, Spain
[2] Chalmers Univ, Comp Sci & Engn, Gothenburg, Sweden
关键词
Software verification; Software testing; Model Based Testing; Software Tools; QuickCheck;
D O I
10.1016/j.entcs.2011.02.010
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Many software systems are data-intensive and use a data management systems for data storage, such as Relational Database Management Systems (RDBMS). RDBMSs are used to store information in a structured manner, and to define several types of constraints on the data, to maintain basic consistency. The RDBMSs are mature, well tested, software products that one can trust to reliably store data and keep it consistent within the defined constraints. There are, however, scenarios in which passing the responsibility of consistency enforcement to the RDBMS is not convenient, or simply not possible. In such cases, the alternative is to have that responsibility at the business logic level of the system. Hence, from the point of view of testing data-intensive applications, one of the most relevant aspects is to ensure correctness of the business logic in terms of data consistency. In this article, we show how QuickCheck, a tool for random testing against specifications, can be used to test the business logic of an application to increase confidence on data integrity. We build an abstract model of the data containing the minimum information necessary to create meaningful test cases, while keeping its state substantially smaller than the data in the complete database. From the abstract model we automatically generate and execute test cases which check that data constraints are preserved.
引用
收藏
页码:41 / 62
页数:22
相关论文
共 15 条
  • [1] [Anonymous], 2002, ARMISTICE ADV RISK M
  • [2] Armstrong J., 1996, CONCURRENT PROGRAMMI
  • [3] Arts T., 2006, P 2006 ACM SIGPLAN W, P2
  • [4] Arts T, 2008, ERLANG '08: PROCEEDINGS OF THE 2008 SIGPLAN ERLANG WORKSHOP, P1
  • [5] A methodology and tool support for managing business rules in organisations
    Bajec, M
    Krisper, M
    [J]. INFORMATION SYSTEMS, 2005, 30 (06) : 423 - 443
  • [6] CABRERO D, 2003, P 2 ACM SIGPLAN WORK, P23
  • [7] Cesarini F., 2009, ERLANG PROGRAMMING
  • [8] Dietrich J., 2005, INFORM SYSTEMS TECHN, V63, P31
  • [9] Emmi Michael, 2007, P ACM SIGSOFT INT S, P151
  • [10] Gulias VM, 2006, ICEIS 2006: PROCEEDINGS OF THE EIGHTH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS, P516