Using custom code to manipulate data
You can write a custom Java™ class to manipulate
data in a send element. This offers flexibility for injecting data in test, but requires that you
write your own Java class using the Rational® Performance Tester extension
API.
Before you begin
Procedure
To create a new custom code class:
- In the test editor, select a socket send element.
- Select Manipulate data with custom code and click Generate Code. This creates a Java class template that follows the Rational Performance Tester extension API. The Java class in created in the src folder of the current project.
- Write the custom code by extending the generating class. See Extending test execution with custom code for more information about extending Rational Performance Tester with Java code.
- Save the custom code and the test. You can click View Code to edit the Java class later.