X-Data: Generating Test Data for Killing SQL Mutants

被引:9
|
作者
Gupta, Bhanu Pratap [1 ]
Vira, Devang [1 ]
Sudarshan, S. [1 ]
机构
[1] Indian Inst Technol, Bombay 400076, Maharashtra, India
关键词
D O I
10.1109/ICDE.2010.5447862
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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 non-equivalent 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.
引用
收藏
页码:876 / 879
页数:4
相关论文
共 50 条
  • [1] Generating Test Data for Killing SQL Mutants: A Constraint-based Approach
    Shah, Shetal
    Sudarshan, S.
    Kajbaje, Suhas
    Patidar, Sandeep
    Gupta, Bhanu Pratap
    Vira, Devang
    IEEE 27TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2011), 2011, : 1175 - 1186
  • [2] An approach to test data generation for killing multiple mutants
    Liu, Ming-Hao
    Gao, You-Feng
    Shan, Jin-Hui
    Liu, Jiang-Hong
    Zhang, Lu
    Sun, Jia-Su
    ICSM 2006: 22ND IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 2006, : 113 - +
  • [3] Generating large random test data table for SQL training
    Sterle, U.
    2017 40TH INTERNATIONAL CONVENTION ON INFORMATION AND COMMUNICATION TECHNOLOGY, ELECTRONICS AND MICROELECTRONICS (MIPRO), 2017, : 954 - 957
  • [4] Set evolution based test data generation for killing stubborn mutants
    Wei, Changqing
    Yao, Xiangjuan
    Gong, Dunwei
    Liu, Huai
    Dang, Xiangying
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 216
  • [5] Test data regeneration: generating new test data from existing test data
    Yoo, S.
    Harman, M.
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2012, 22 (03): : 171 - 201
  • [6] Evolutionary approach to generating test data for data flow test
    Jiang, Shujuan
    Chen, Jieqiong
    Zhang, Yanmei
    Qian, Junyan
    Wang, Rongcun
    Xue, Meng
    IET SOFTWARE, 2018, 12 (04) : 318 - 323
  • [7] Efficiently Generating Test Data to Kill Stubborn Mutants by Dynamically Reducing the Search Domain
    Dang, Xiangying
    Yao, Xiangjuan
    Gong, Dunwei
    Tian, Tian
    IEEE TRANSACTIONS ON RELIABILITY, 2020, 69 (01) : 334 - 348
  • [8] Generating valid test data through data cloning
    Oriol, Xavier
    Teniente, Ernest
    Maynou, Marc
    Nadal, Sergi
    FUTURE GENERATION COMPUTER SYSTEMS-THE INTERNATIONAL JOURNAL OF ESCIENCE, 2023, 144 : 179 - 191
  • [9] Generating test data for branch coverage
    Gupta, N
    Mathur, AP
    Soffa, ML
    FIFTEENTH IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2000, : 219 - 227
  • [10] Generating software test data by evolution
    Michael, CC
    McGraw, G
    Schatz, MA
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2001, 27 (12) : 1085 - 1110