[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
article

Full predicate coverage for testing SQL database queries

Published: 01 September 2010 Publication History

Abstract

In the field of database applications a considerable part of the business logic is implemented using a semi-declarative language: the Structured Query Language (SQL). Because of the different semantics of SQL compared with other procedural languages, the conventional coverage criteria for testing are not directly applicable. This paper presents a criterion specifically tailored for SQL queries (SQLFpc). It is based on Masking Modified Condition Decision Coverage (MCDC) or Full Predicate Coverage and takes into account a wide range of the syntax and semantics of SQL, including selection, joining, grouping, aggregations, subqueries, case expressions and null values. The criterion assesses the coverage of the test data in relation to the query that is executed and it is expressed as a set of rules that are automatically generated and efficiently evaluated against a test database. The use of the criterion is illustrated in a case study, which includes complex queries. Copyright © 2010 John Wiley & Sons, Ltd.
This paper presents the SQLFpc coverage criterion specifically tailored for SQL queries. The criterion is based on MCDC and measures the coverage of the test data in relation to the query that is executed. It is expressed as a set of coverage rules that is automatically generated and efficiently evaluated against a test database. A set of tools to automate the evaluation of the coverage is available at . Copyright © 2010 John Wiley & Sons, Ltd.
This article was published online on [15 January 2010]. An error was subsequently identified. This notice is included in the online and print versions to indicate that both have been corrected [18 March 2010].

Cited By

View all
  • (2024)An Empirical Study on the Characteristics of Database Access Bugs in Java ApplicationsACM Transactions on Software Engineering and Methodology10.1145/367244933:7(1-25)Online publication date: 13-Jun-2024
  • (2023)SlabCity: Whole-Query Optimization Using Program SynthesisProceedings of the VLDB Endowment10.14778/3611479.361151516:11(3151-3164)Online publication date: 24-Aug-2023
  • (2023)A Scalable Query-Aware Enormous Database Generator for Database EvaluationIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2022.315365135:5(4395-4410)Online publication date: 1-May-2023
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Software Testing, Verification & Reliability
Software Testing, Verification & Reliability  Volume 20, Issue 3
September 2010
113 pages
ISSN:0960-0833
EISSN:1099-1689
Issue’s Table of Contents

Publisher

John Wiley and Sons Ltd.

United Kingdom

Publication History

Published: 01 September 2010

Author Tags

  1. MCDC
  2. SQL
  3. database testing
  4. full predicate coverage
  5. software testing

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 13 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2024)An Empirical Study on the Characteristics of Database Access Bugs in Java ApplicationsACM Transactions on Software Engineering and Methodology10.1145/367244933:7(1-25)Online publication date: 13-Jun-2024
  • (2023)SlabCity: Whole-Query Optimization Using Program SynthesisProceedings of the VLDB Endowment10.14778/3611479.361151516:11(3151-3164)Online publication date: 24-Aug-2023
  • (2023)A Scalable Query-Aware Enormous Database Generator for Database EvaluationIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2022.315365135:5(4395-4410)Online publication date: 1-May-2023
  • (2020)Handling SQL Databases in Automated System Test GenerationACM Transactions on Software Engineering and Methodology10.1145/339153329:4(1-31)Online publication date: 6-Jul-2020
  • (2019)SQL data generation to enhance search-based system testingProceedings of the Genetic and Evolutionary Computation Conference10.1145/3321707.3321732(1390-1398)Online publication date: 13-Jul-2019
  • (2018)MaRIAJournal of Web Engineering10.5555/3370055.337005817:3-4(206-223)Online publication date: 1-Jun-2018
  • (2018)Search-based test data generation for SQL queriesProceedings of the 40th International Conference on Software Engineering10.1145/3180155.3180202(1220-1230)Online publication date: 27-May-2018
  • (2017)Incremental test data generation for database queriesAutomated Software Engineering10.1007/s10515-017-0212-724:4(719-755)Online publication date: 1-Dec-2017
  • (2016)Towards an MDE-based approach to test entity reconciliation applicationsProceedings of the 7th International Workshop on Automating Test Case Design, Selection, and Evaluation10.1145/2994291.2994303(74-77)Online publication date: 18-Nov-2016
  • (2016)Symbolic execution of stored procedures in database management systemsProceedings of the 31st IEEE/ACM International Conference on Automated Software Engineering10.1145/2970276.2970318(519-530)Online publication date: 25-Aug-2016
  • Show More Cited By

View Options

View options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media