Extend initialization and finalization during a test run

 

+

Search Tips   |   Advanced Search

 

You can specify code for protocol to be executed by the performance tester engine threads at strategic points during startup and shutdown.

For example, you can specify code to...

You create a class that implements IKInitializeFinalize. The interface requires the following methods:

The IKInitializeFinalize interface provides a way for protocols to specify code that must be executed to the Rational Performance Tester engine:

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:

  1. Specify a dependency on...

      com.ibm.rational.test.lt.execution

    ...in the plugin.xml file of a protocol.

  2. Use Add under plugin Extensions to specify an extension for...

      com.ibm.rational.test.lt.execution.InitializeFinalize

  3. 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=