An intensional approach to the specification of test cases for database applications

David Willmor, Suzanne M. Embury

    Research output: Chapter in Book/Report/Conference proceedingConference contribution

    Abstract

    When testing database applications, in addition to creating in-memory fixtures it is also necessary to create an initial database state that is appropriate for each test case. Current approaches either require exact database states to be specified in advance, or else generate a single initial state (under guidance from the user) that is intended to be suitable for execution of all test cases. The first method allows large test suites to be executed in batch, but requires considerable programmer effort to create the test cases (and to maintain them). The second method requires less programmer effort, but increases the likelihood that test cases will fail in non-fault situations, due to unexpected changes to the content of the database. In this paper, we propose a new approach in which the database states required for testing are specified intensionally, as constrained queries, that can be used to prepare the database for testing automatically. This technique overcomes the limitations of the other approaches, and does not appear to impose significant performance overheads. Copyright 2006 ACM.
    Original languageEnglish
    Title of host publicationProceedings - International Conference on Software Engineering|Proc Int Conf Software Eng
    PublisherAssociation for Computing Machinery
    Pages102-111
    Number of pages9
    Volume2006
    ISBN (Print)1595933751, 9781595933751
    Publication statusPublished - 2006
    Event28th International Conference on Software Engineering 2006, ICSE '06 - Shanghai
    Duration: 1 Jul 2006 → …
    http://dblp.uni-trier.de/db/conf/icse/icse2006.html#WillmorE06http://dblp.uni-trier.de/rec/bibtex/conf/icse/WillmorE06.xmlhttp://dblp.uni-trier.de/rec/bibtex/conf/icse/WillmorE06

    Conference

    Conference28th International Conference on Software Engineering 2006, ICSE '06
    CityShanghai
    Period1/07/06 → …
    Internet address

    Keywords

    • Database testing
    • Databases
    • Software testing

    Fingerprint

    Dive into the research topics of 'An intensional approach to the specification of test cases for database applications'. Together they form a unique fingerprint.

    Cite this