Prologue files and epilogue files enable you to control
the DTM test environment. Both are command files that
you create and associate with tests and collections.
You use prologue files to set up test conditions before
recording a test, running a test in a collection, or
executing the collection as a whole. You use epilogue
files to clean up or filter files after recording a
test, running a test in a collection, or executing the
collection as a whole.
Tests, prologue files, and epilogue files execute in
the following order:
1. Collection prologue file
2. Test1 prologue file
3. Test1
4. Test1 epilogue file
5. Test2 prologue file
6. Test2
7. Test2 epilogue file
.
.
.
8. Collection epilogue file
1 – cre_coll_prols
You create prologue and epilogue files with a text editor. You must then identify the files to DTM. You can specify default collection prologue and epilogue files. All subsequently created collections invoke this file whenever DTM executes the collections. You can override the default specifications by explicitly specifying a different collection prologue or epilogue file when you create the collection. When you override the default collection prologue and epilogue files, you do so only for the newly created collection.
1.1 – cre_coll_def_pro
To specify default collection prologue and epilogue files when you create a library, perform the following steps: 1. Pull down the Library menu. 2. Choose the Create... menu item. To specify default collection prologue and epilogue files when the library exists, perform the following steps: 1. Pull down the Library menu. 2. Choose the Modify... menu item. In both cases, enter the names for the default collection prologue and epilogue files in the Prologue and Epilogue fields.
1.2 – cre_coll_spec_pro
You can override the default collection prologue and
epilogue files for a specific collection when you
create the collection. Enter a new file name in the
Prologue and Epilogue fields to override the default
collection prologue and epilogue files.
To associate prologue and epilogue files with a
specific collection, perform the following steps:
1. Pull down the Maintenance menu.
2. Choose the Create menu item and the Collection...
submenu item.
3. Click on the Options... button.
2 – cre_test_prols
To associate a test prologue or epilogue file with a
test when you create a test description, enter the
Prologue or Epilogue directory and filename into the
field.
To associate a test prologue or epilogue file with a
test when the test description exists, perform the
following steps:
1. From the Test View, click on the test to be
modified.
2. Pull down the Maintenance menu.
3. Choose the Modify menu item and the Test... submenu
item.
4. Click the button for Prologue and/or Epilogue
5. Type the directory and file name into the Prologue
and/or Epilogue box
Test prologue and epilogue files are executed whenever
DTM records or executes the test.