You can add custom testing features to a test by writing custom Java code and calling the code from the test. Custom code can use existing references in the test as input and can output modified values to the test. If your custom code logs results with the Rational Performance Tester logging interface, they will be included in the product's reports.
Overview of the results logging interface
If your custom code uses the IKLog interface to report test results, you can inspect the results in the test's execution history. If you log custom verification point verdicts, these are reflected in the overall schedule verdict.Adding custom code
You can extend a test by calling custom Java code.Logging a simple message
This example writes a text message to the execution history. The class is identical to the template except for the line in bold.Logging a verdict event
This example logs a fail verdict if the custom code's input from the calling test is missing. If the expected input is present, the input is written to the execution history and a pass verdict is logged. Bold indicates lines added to the template.
Parent topic: Editing tests