• DocumentCode
    2081049
  • Title

    X-data: Generating test data for killing SQL mutants

  • Author

    Gupta, Bhanu Pratap ; Vira, Devang ; Sudarshan, S.

  • Author_Institution
    Indian Inst. of Technol., Mumbai, India
  • fYear
    2010
  • fDate
    1-6 March 2010
  • Firstpage
    876
  • Lastpage
    879
  • Abstract
    Checking if an SQL query has been written correctly is not an easy task. Formal verification is not applicable, since it is based on comparing a specification with an implementation, whereas SQL queries are essentially a specification without any implementation. Thus, the standard approach for testing queries is to manually check query results on test datasets. Intuitively, a mutant is a query variant that could have been the correct query if the query was in error; a mutant is killed by a dataset if the original query and the mutant return different results on the dataset. In this paper, we address the problem of generation of test data for an SQL query, to kill mutants. Our work focuses in particular on a class of join/outer-join mutants, which are a common cause of error. To minimize human effort in testing, our techniques generate a test suite containing small and intuitive test datasets, combining them into a single dataset where possible. In the absence of foreign-key constraints, and under certain assumptions, the test suite is complete, i.e. it kills all nonequivalent mutations, in the class of join-type mutations that we consider. We also consider some common types of where-clause predicate mutants. Our techniques have been implemented in a prototype data generation tool.
  • Keywords
    SQL; formal verification; query processing; SQL mutants; SQL query; X-data query; foreign-key constraints; formal verification; join mutants; nonequivalent mutations; outer-join mutants; query variant; test data generation; where-clause predicate mutants; Couplings; Data privacy; Databases; Diseases; Hospitals; Influenza; Protection; Publishing; Sun; Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Data Engineering (ICDE), 2010 IEEE 26th International Conference on
  • Conference_Location
    Long Beach, CA
  • Print_ISBN
    978-1-4244-5445-7
  • Electronic_ISBN
    978-1-4244-5444-0
  • Type

    conf

  • DOI
    10.1109/ICDE.2010.5447862
  • Filename
    5447862