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 language | English |
---|---|
Title of host publication | Proceedings - International Conference on Software Engineering|Proc Int Conf Software Eng |
Publisher | Association for Computing Machinery |
Pages | 102-111 |
Number of pages | 9 |
Volume | 2006 |
ISBN (Print) | 1595933751, 9781595933751 |
Publication status | Published - 2006 |
Event | 28th 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
Conference | 28th International Conference on Software Engineering 2006, ICSE '06 |
---|---|
City | Shanghai |
Period | 1/07/06 → … |
Internet address |
Keywords
- Database testing
- Databases
- Software testing