com.ibm.rational.test.lt.kernel

Interface IKInitializeFinalize



  • public interface IKInitializeFinalize
    The IKInitializeFinalize interface provides a way for protocols to specify to the RPT Engine code to be executed:
          . once by the RPT Engine at startup
          . once by the RPT Engine at shutdown
          . once by each RPT Engine Worker thread at startup
          . once by each RPT Engine Worker thread at shutdown
     

    This startup and shutdown code should be used when it is necessary to have some initialization or shutdown code executed by the engine or each worker thread before test execution occurs, or after test execution finishes.

    To take advantage of this functionality, a protocol should modify its plugin.xml, specifying a dependency on com.ibm.rational.test.lt.execution. Next, 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 should have the following properties:

          class - the class name that implements IKInitializeFinalize
          id - the protocol feature id
          dependsOn - currently leave blank
     

    For example:

          class="com.ibm.rational.test.lt.execution.http.impl.HTTPInitializeFinalize
          id="com.ibm.rational.test.lt.feature.http"
          dependsOn=
     
    • Method Detail

      • initializeEngine

        void initializeEngine()
        RPT Engine initialize code.
      • finalizeEngine

        void finalizeEngine()
        RPT Engine finalize code.
      • initializeWorker

        void initializeWorker()
        RPT Engine Worker thread initialize code.
      • finalizeWorker

        void finalizeWorker()
        RPT Engine Worker thread finalize code.
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.