IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.kernel.custom
Interface ICustomCode


public interface ICustomCode

Interface implemented to allow additions of custom code to a performance test.

From the performance test editor, adding a Custom Code action will generate a template java class which implements ICustomCode. This class will always be constructed with no arguments.

Users add content to the exec() method. During test execution the exec method will be executed when the custom code action is encountered in the test. The arguments provided are specified in the performance test editor.

Custom code actions may be used to return text that can be used as a source of data later in the performance test. Custom code actions also allow logging of addtional data or messages to the test results through use of IKLog


Method Summary
 String exec(IKLog log, String[] args)
          The method containing the user supplied code to execute.
 

Method Detail

exec

String exec(IKLog log,
            String[] args)
The method containing the user supplied code to execute.

Complete the body of this method with your code.

Parameters:
log - an object that provides access to methods useful for logging test results and generating debug events in the problem determination log.
args - an array of string arguments provided when data collectors are associated with this custom action.
Returns:
a string which can be used as a data source.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.