skip to main content
article

Using an SQL coverage measurement for testing database applications

Published:31 October 2004Publication History
Skip Abstract Section

Abstract

Many software applications have a component based on database management systems in which information is generally handled through SQL queries embedded in the application code. When automation of software testing is mentioned in the research, this is normally associated with programs written in imperative and structured languages. However, the problem of automated software testing applied to programs that manage databases using SQL is still an open issue. This paper presents a measurement of the coverage of SQL queries and the tool that automates it. We also show how database test data may be revised and changed using this measurement by means of completing or deleting information to achieve the highest possible value of coverage of queries that have access to the database.

References

  1. ANSI/ISO/IEC International Standard (IS). Database Language SQL-Part 2: Foundation (SQL/Foundation). "Part 2". 1999.Google ScholarGoogle Scholar
  2. Chan, M.Y. and Cheung, S.C. Applying white box testing to database applications. CSTR, Hong Kong University of Science and Technology, HKUST-CS99-01. 1999.Google ScholarGoogle Scholar
  3. Chays D., Deng, Y., Frankl, P.G., Dan S., Vokolos, F.I. and Weyuker, E.J. An AGENDA for testing relational database applications. Software Testing, Verification and Reliability. 14 17--44. 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Davies, R.A., Beynon, R.J.A. and Jones, B.F. Automating the testing of databases. 1st International Workshop of Automated Program Analysis, Testing and Verification. 2000.Google ScholarGoogle Scholar
  5. Daou, B., Haraty, R.A. and Mansour, N. Regression testing of database applications. Symposium of Applied Computing. ACM. 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Encontre, V. Empowering the developer to be a tester tool. Int. Symposium on Software Testing and Analysis, Industry panel. ACM SIGSOFT Software Engineering Notes. 2002.Google ScholarGoogle Scholar
  7. Hartman, A. Is ISSTA research relevant to industry? Int. Symposium on Software Testing and Analysis, Industry panel. ACM SIGSOFT Software Engineering Notes. 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Kapfhammer, G.M. and Soffa, M.L. A family of test adequacy criteria for database-driven applications. ESEC/FSE'03. ACM SIGSOFT Software Engineering Notes. 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Slutz, D. Massive Stochastic Testing of SQL. 24th Very Large Data Base Conference. 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. SQLUnit Project. http://sqlunit.sourceforge.netGoogle ScholarGoogle Scholar
  11. Tassey, G. The economic impacts of inadequate infrastructure for software testing. National Institute of Standards and Technology. Planning Report 02-3. 2002.Google ScholarGoogle Scholar
  12. Zang, J., Xu, C. and Cheung, S. C. Automatic generation of database instances for white-box testing. 25th International Computer Software and Applications Conference. 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Zhu, H., Hall, P. A. V., May, J. H. R. Software Unit Test Coverage and Adequacy. ACM Computing Surveys, 49(4) 366--427. 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Using an SQL coverage measurement for testing database applications

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM SIGSOFT Software Engineering Notes
      ACM SIGSOFT Software Engineering Notes  Volume 29, Issue 6
      November 2004
      275 pages
      ISSN:0163-5948
      DOI:10.1145/1041685
      Issue’s Table of Contents
      • cover image ACM Conferences
        SIGSOFT '04/FSE-12: Proceedings of the 12th ACM SIGSOFT twelfth international symposium on Foundations of software engineering
        October 2004
        282 pages
        ISBN:1581138555
        DOI:10.1145/1029894

      Copyright © 2004 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 31 October 2004

      Check for updates

      Qualifiers

      • article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader