Title :
Query-Aware Test Generation Using a Relational Constraint Solver
Author :
Abdul Khalek, Shadi ; Elkarablieh, Bassem ; Laleye, Yai O. ; Khurshid, Sarfraz
Author_Institution :
Univ. of Texas at Austin, Austin, TX
Abstract :
We present a novel approach for black-box testing of database management systems (DBMS) using the Alloy tool-set. Given a database schema and an SQL query as inputs, our approach first formulates Alloy models for both inputs, and then using the Alloy Analyzer, it generates (1) input data to populate test databases, and (2) the expected result of executing the given query on the generated data. The Alloy Analyzer results form a complete test suite (input/oracle) for verifying the execution result of a DBMS query processor. By incorporating both the schema and the query during the analysis, our approach performs query-aware data generation where executing the query on the generated data produces meaningful non-empty results. We developed a prototype tool, ADUSA, and used it to evaluate our approach. Experimental results show the ability of our approach to detect bugs in both open-source as well as commercial database management systems.
Keywords :
SQL; constraint handling; program debugging; program testing; public domain software; query processing; relational databases; ADUSA; Alloy Analyzer; Alloy tool-set; SQL query; black-box testing; bugs detection; commercial database management system; database management systems; open-source database management system; query-aware data generation; query-aware test generation; relational constraint solver; Automatic testing; Computer bugs; Costs; Data analysis; Database systems; Open source software; Performance evaluation; Prototypes; Relational databases; System testing;
Conference_Titel :
Automated Software Engineering, 2008. ASE 2008. 23rd IEEE/ACM International Conference on
Conference_Location :
L´Aquila
Print_ISBN :
978-1-4244-2187-9
Electronic_ISBN :
1938-4300
DOI :
10.1109/ASE.2008.34