estCase_Collection_Update.html" Content-Transfer-Encoding: 8bit
LCG-Application Area
|
POOL
Test Case
|
Case: Collection_Update |
Component |
Author |
Date |
Version |
|
Collection |
Kristo Karr |
|
1.0.1 |
Test Case Description ·
Opens an existing
collection of data object references and their associated meta
data. ·
Retrieves and prints out
the meta data list specification. ·
Creates an iterator for the collection. ·
Uses the iterator to loop through all data objects in the
collection, retrieve the event and associated meta
data and print it out. ·
Loops through new dummy
events, creates new data objects and adds them and their associated meta data to the collection. ·
Rolls back the last changes
made to the collection. ·
Creates a new iterator for the collection. ·
Uses this iterator to loop through all data objects in the
collection and verify that the data for the last events added to the
collection were erased by the roll back operation. ·
Tests closing and
reopening the collection. ·
Loops through new dummy
events, creates new data objects and adds them and their associated meta data to the collection. ·
Commits the last changes
made to the collection. ·
Attempts to roll back
the changes made to the collection after they were already committed. ·
Creates another iterator for the collection. ·
Uses this iterator to loop through all data objects in the
collection and verify that the new events were successfully added to the
collection this time. ·
Closes the collection. |
||||
Pre and Post Conditions Requires the existence of 2 or more files
created by a previous call to the Collection_Write
executable |
||||
Input/Output Specifications . ·
Requires the existence of a database file
called TestDbFile.pool which contains the
collection’s persistent data. This file will be modified by the test. ·
Requires the existence of a file called PoolFileCatalog.xml which contains database file
identification information. ·
Requires the existence of a local file
(e.g. in the case of a Root collection) or a database table (e.g. in the case
of a MySQL collection) containing the collection of
data object references and associated meta data. |
||||
Test Procedure
% cd $MyPoolArea/src % cvs co –r
POOL_<latest release tag> Tests/Collection_Write % cvs co –r POOL_<latest
release tag> Tests/Collection_Update
% scram build
% eval `scram runtime –csh`
% rehash
% test_Collection_Write <collection
type> % test_Collection_Update
<collection type> where presently recognized
values for <collection type> in these tests are MySQLCollection,
MySQLltCollection and RootCollection. |
||||
Expected results A detailed log of program execution will be printed to standard
output and will include a listing of each event and meta data entry read from
and written to the collection. |
||||
Failure Recovery In the event of a program crash please submit a bug report to the
POOL project via the |
||||
Comments Will
eventually expand test to cover more collection types. |
Template
version:
TEST_testcase-template-00.01 (Draft)
Fri May 16