Extending initialization and finalization during a test run
You can specify code for your protocol to be executed by the HCL OneTest™ Performance engine threads at strategic points during startup and shutdown. For example, you can specify code to load libraries, unload libraries, or perform other initialization or cleanup as required by the protocol.
Before you begin
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 HCL OneTest™ Performance 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
Procedure
- Specify a dependency on
com.ibm.rational.test.lt.execution
in theplugin.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 implementsIKInitializeFinalize
id
: The protocol feature IDdependsOn
: Leave blank
For example:class="com.ibm.rational.test.lt.execution.http.impl.HTTPInitializeFinalize"
id="com.ibm.rational.test.lt.feature.http"
dependsOn=