You can specify code for protocol to be executed by the performance tester engine threads at strategic points during startup and shutdown.
Extend initialization and finalization during a test run
For example, you can specify code to...
- load libraries
- unload libraries
- perform initialization or cleanup
You create a class that implements IKInitializeFinalize. The interface requires the following methods:
- public void initializeEngine()
- public void finalizeEngine()
- public void initializeWorker()
- public void finalizeWorker()
- public interface IKInitializeFinalize
The IKInitializeFinalize interface provides a way for protocols to specify code that must be executed to the Rational Performance Tester engine:
- once by the engine at startup
- once by the engine at shutdown
- once by each engine worker thread at startup
- once by each engine worker thread at shutdown
Use this startup and shutdown code when it is necessary for the engine to execute initialization or shutdown code. Also use this code for each worker thread before test execution occurs or after test execution finishes.
To take advantage of this functionality:
- Specify a dependency on...
com.ibm.rational.test.lt.execution
...in the plugin.xml file of a protocol.
- Use Add under plugin Extensions to specify an extension for...
com.ibm.rational.test.lt.execution.InitializeFinalize
- Create a new extension element called InitializeFinalize.
This element must have the following properties:
class The class name that implements IKInitializeFinalize id The protocol feature ID dependsOn Leave blank
For example:
- class="com.ibm.rational.test.lt.execution.http.impl.HTTPInitializeFinalize"
- id="com.ibm.rational.test.lt.feature.http"
- dependsOn=