Title
Generating Test Data to Distinguish Conjunctive Queries with Equalities
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.
Year
DOI
Venue
2014
10.1109/ICSTW.2014.23
Software Testing, Verification and Validation Workshops
Keywords
Field
DocType
program testing,query processing,conjunctive queries,conjunctive query,mutation techniques,nonequivalent mutant,query rewriting,test data generation,test database generation algorithm,Database Query Testing,Mutation testing
Query optimization,Data mining,Conjunctive query,Query language,Computer science,View,Web query classification,Theoretical computer science,Spatial query,Database theory,Boolean conjunctive query
Conference
ISSN
Citations 
PageRank 
2159-4848
2
0.35
References 
Authors
14
3
Name
Order
Citations
PageRank
Preetham Vemasani120.35
Alexander Brodsky251092.99
Paul Ammann3321.49