DocumentCode :
147925
Title :
Generating Test Data to Distinguish Conjunctive Queries with Equalities
Author :
Vemasani, Preetham ; Brodsky, Alexander ; Ammann, Paul
Author_Institution :
Dept. of Comput. Sci., George Mason Univ., Fairfax, VA, USA
fYear :
2014
fDate :
March 31 2014-April 4 2014
Firstpage :
216
Lastpage :
221
Abstract :
The widespread use of databases in software systems has increased the importance of unit testing the queries that form the interface to these databases. Mutation analysis is a powerful testing technique that has been adapted to test database queries. But each of the existing mutation approaches to testing database queries has one or more of the following shortcomings: inability to recognize equivalent mutants, inability to generate test databases automatically, or inability to mutate all aspects of a query. In this paper we address all three of these challenges by adapting results from the rich literature on query rewriting. We restrict attention to the class of conjunctive queries with equalities. In return for this restriction, we give an algorithm that recognizes equivalent mutants, generates a test database that distinguishes each nonequivalent mutant, and applies to arbitrary mutations, as long at the mutation is also a conjunctive query with equalities. The paper presents the test database generation algorithm and proves that it is sound and complete for conjunctive queries with equalities. We then illustrate the algorithm on a sample query. We evaluate mutations of the query both with the new technique and compare the results to existing mutation techniques for databases.
Keywords :
program testing; query processing; conjunctive queries; conjunctive query; mutation techniques; nonequivalent mutant; query rewriting; test data generation; test database generation algorithm; Qualifications; Relational databases; Semantics; Software testing; Syntactics; Database Query Testing; Mutation testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Testing, Verification and Validation Workshops (ICSTW), 2014 IEEE Seventh International Conference on
Conference_Location :
Cleveland, OH
Type :
conf
DOI :
10.1109/ICSTW.2014.23
Filename :
6825660
Link To Document :
بازگشت