You can create a new Load Test Behavior Model (LTBM) element.
Procedure
Follow these steps to create a new model element:
- Optionally create an interface that defines the methods
for the class, including the setters and getters.
- Create a new class that extends CBBlockImpl interface
and that optionally implements the interface defined in the above
step.
- Implement the getters and setters of attributes for this
model element class.
- The setter must set the value attributes of the primitive
data types into the underlying model using one of the overloaded setProperty() methods.
- Override the addReference() method to set attributes
of complex types.
- The getter, at least initially, gets the value of the attribute
from the underlying model using one of the overloaded getProperty() methods based on the type of the property for primitive attributes.
- The model element can additionally decide to store the
value of the attributes in local attributes. However, the underlying
principle to be followed is that the get should get it first from
the underlying model and the set should store it into the underlying
model.