You can extend how you run
your tests by writing custom Java™ code and calling the code from the test. You can also specify that
results from the tests that are affected by your custom code be included
in reports.
Creating custom Java code
Custom code uses references
in the test as input and returns modified values to the test. Use
the ICustomCode2 interface to create custom code
and the ITestExecutionServices interface to extend
test execution. These interfaces are contained in the com.ibm.rational.test.lt.kernel.services package.
Test execution services interfaces and classes
You use the test execution
services interfaces and classes to customize how you run tests. These
interfaces and classes are located in the com.ibm.rational.test.lt.kernel
package. Each interface and class is described briefly in this topic
and in detail in the Javadoc information.
Custom code examples
Custom code enables you to perform such tasks as managing
loops, retrieving virtual user information, running external programs
from tests, and customizing data correlation.
Migrating custom code from previous versions
You can run scripts that
contain custom code from previous releases and edit tests to make
new calls to old or new custom code classes.