|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
String exec(IKLog log, String[] args)
Complete the body of this method with your code.
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.
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |