Collection_MultiFileWrite.html" Content-Transfer-Encoding: 8bit LCG SPI - TESTING (Test Cases Specifications)

LCG-Application Area
SPI: Software Testing

POOL  

Test Case

 July 10, 2003


Case: Collection_MultiFileWrite

Component

Author

Date

Version

 

Collection

Kristo Karr

07-10-03

1.0.1

Test Case Description

·         Creates or overwrites a collection object for storing data object references and associated meta data.

·         Creates 3 different Persistency Service Placement objects, each for a different database file.

·         Creates a simple meta data list specification

·         Loops over the 3 database files.

·         For each file, loops through dummy events and for each event:

1.      Creates a reference to a simple data test object.

2.      Marks the test object for writing into the given database file.

3.      Sets the test object’s event data.

4.      Sets the test object’s meta data.

5.      Adds the event and meta data to the collection.

  • Commits all changes made to the collection.
  • Closes the collection.

Pre and Post Conditions

Creation or overwrite of 2 files in the present directory.

Input/Output Specifications .

·        Creation (or overwrite if they already exists) of 3 database files called TestDbFile1.pool, TestDbFile2.pool and TestDbFile3.pool which contain the collection’s persistent data

·        Creation (if it does not exist) of a file called PoolFileCatalog.xml to store database file identification information.

·        Creation (or overwrite if it already exists) of a local file (e.g. when creating a Root collection) or a database table (e.g. when creating a MySQL collection) containing the collection of data object references and associated meta data.

Test Procedure

 

 

  • Enter the src directory of your local POOL project area and check out the Collection_MultiFileWrite package from the POOL CVS repository:

          % cd $MyPoolArea/src

    % cvs co –r POOL_<latest release tag> Tests/Collection_MultiFileWrite

 

  • Compile and link the package:

          % scram build

 

  • Setup the SCRAM runtime environment variables (change csh to sh for Bash shell):

               % eval `scram runtime –csh`

               % rehash

 

  • Run the executable:

          % test_Collection_MultiFileWrite <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 written to the collection and the corresponding files into which this information is stored.

Failure Recovery

In the event of a program crash please submit a bug report to the POOL project via the Savannah Portal at http://savannah.cern.ch/

Comments

 

Will eventually expand test to cover more collection types.

 


Template version: TEST_testcase-template-00.01 (Draft)
Fri May 16
10:15:58