Pablo Javier Tuya González , María José Suárez Cabal
, Claudio de la Riva Álvarez
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 to other procedural languages, the conventional coverage criteria for testing arenot directly applicable. This paper presents a criterion specifically tailored forSQL queries (SQLFpc). It is based on Masking Modified Condition DecisionCoverage (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.
© 2008-2025 Fundación Dialnet · Todos los derechos reservados