aa_register_init_class (public)
aa_register_init_class init_class_id init_class_desc constructor \ destructor
Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl
Registers an initialization class to be used by one or more testcases. An initialization class can be assigned to a testcase via the aa_register_case proc. An initialization constructor is called once before running a set of testcases, and the destructor called once upon completion of running a set of testcases.
The idea behind this is that it could be used to perform data intensive operations that shared amongst a set if testcases. For example, mounting an instance of a package. This could be performed by each testcase individually, but this would be highly inefficient if there are any significant number of them. Better to let the acs-automated-testing infrastructure call the init_class code to set the package up, run all the tests, then call the destructor to unmount the package.
- Parameters:
- init_class_id (required)
- Unique string to identify the init class
- init_class_desc (required)
- Longer description of the init class
- constructor (required)
- Tcl code block to run to setup the init class
- destructor (required)
- Tcl code block to tear down the init class
- Author:
- Peter Harper
- Created:
- 04 November 2001
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- check_package_mount, db_check_news_create, db_check_news_revision, db_check_news_archive, db_check_news_set_approve, db_check_news_status