• DocumentCode
    3143961
  • Title

    Generating test data for killing SQL mutants: A constraint-based approach

  • Author

    Shah, Shetal ; Sudarshan, S. ; Kajbaje, Suhas ; Patidar, Sandeep ; Gupta, Bhanu Pratap ; Vira, Devang

  • Author_Institution
    Comput. Sci. & Eng. Dept., Indian Inst. of Technol., Mumbai, India
  • fYear
    2011
  • fDate
    11-16 April 2011
  • Firstpage
    1175
  • Lastpage
    1186
  • Abstract
    Complex SQL queries are widely used today, but it is rather difficult to check if a complex query has been written correctly. Formal verification based on comparing a specification with an implementation is not applicable, since SQL queries are essentially a specification without any implementation. Queries are usually checked by running them on sample datasets and checking that the correct result is returned; there is no guarantee that all possible errors are detected. In this paper, we address the problem of test data generation for checking correctness of SQL queries, based on the query mutation approach for modeling errors. Our presentation focuses in particular on a class of join/outer-join mutations, comparison operator mutations, and aggregation operation mutations, 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. The number of datasets generated, is linear in the size of the query, although the number of mutations in the class we consider is exponential. Under certain assumptions on constraints and query constructs, the test suite we generate is complete for a subclass of mutations that we define, i.e., it kills all non-equivalent mutations in this subclass.
  • Keywords
    SQL; formal verification; query processing; SQL mutants; SQL queries; aggregation operation mutations; comparison operator mutations; constraint-based approach; correctness checking; error modelling; formal verification; outer-join mutations; query mutation approach; test data generation; Aggregates; Algebra; Databases; Humans; Polynomials; Programming; Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Data Engineering (ICDE), 2011 IEEE 27th International Conference on
  • Conference_Location
    Hannover
  • ISSN
    1063-6382
  • Print_ISBN
    978-1-4244-8959-6
  • Electronic_ISBN
    1063-6382
  • Type

    conf

  • DOI
    10.1109/ICDE.2011.5767876
  • Filename
    5767876