この例は、実行ヒストリーにテキスト・メッセージを書き込みます。クラスは行が太字であることを除けば、テンプレートと同じです。
package custom; import com.ibm.rational.test.lt.kernel.logging.IKLog; /** * @author unknown */ public class LogSimpleMessageExample implements com.ibm.rational.test.lt.kernel.custom.ICustomCode { /** * no-arg コンストラクターを使用して、これのインスタンスを作成します。 */ public LogSimpleMessageExample() { } /** * @see com.ibm.rational.test.lt.kernel.custom.ICustomCode#exec(IKLog, java.lang.String[]) */ public String exec(IKLog log, String[] args) { log.reportMessage("Test execution started"); return null; } }