DocumentCode
3176032
Title
Systematic Testing of Database Engines Using a Relational Constraint Solver
Author
Khalek, Shadi Abdul ; Khurshid, Sarfraz
Author_Institution
Dept. of Electr. & Comput. Eng., Univ. of Texas at Austin, Austin, TX, USA
fYear
2011
fDate
21-25 March 2011
Firstpage
50
Lastpage
59
Abstract
We describe an automated approach for systematic black-box testing of database management systems (DBMS) using a relational constraint solver. We reduce the problem of automated database testing into generating three artifacts: (1) SQL queries for testing, (2) meaningful input data to populate test databases, and (3) expected results of executing the queries on the generated data. We leverage our previous work on ADUSA and the Automated SQL Query Generator to form high-quality test suites for testing DBMS engines. This paper presents a detailed description of our framework for Automated SQL Query Generation using the Alloy tool-set, and experimental results of testing database engines using our framework. We show how the main SQL grammar constraints can be solved by translating them to Alloy constraints to generate semantically and syntactically correct SQL queries. We also present experimental results of combining ADUSA and the Automated SQL Query Generator, and applying our framework to test the Oracle 11g database. Our framework generated 5 new queries, which reveal erroneous behavior of Oracle 11g.
Keywords
SQL; constraint handling; grammars; program testing; query processing; relational databases; ADUSA; DBMS engine; Oracle 11g database; SQL grammar constraint; alloy constraint; alloy tool-set; automated SQL query generator; automated database testing; database engine; database management system; relational constraint solver; systematic black-box testing; systematic testing; Aggregates; Database systems; Generators; Grammar; Metals; Testing; Alloy; Automatic testing; Constraint Solver; DBMS; Database; SQL;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Testing, Verification and Validation (ICST), 2011 IEEE Fourth International Conference on
Conference_Location
Berlin
Print_ISBN
978-1-61284-174-8
Electronic_ISBN
978-0-7695-4342-0
Type
conf
DOI
10.1109/ICST.2011.21
Filename
5770594
Link To Document