public interface ICustomCode
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
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.© Copyright IBM Corp. 2013. All rights reserved.