Extend code generation

 

+

Search Tips   |   Advanced Search

 

The code generation subsystem maps Load Test Behavior Model (LTBM) elements to objects of the code generation element model (IModelElement), which in turn are mapped to objects of its ILanguageElement class. As a result, a language element tree is created containing all equivalent elements of the behavior model test element tree and at the same time determines the structure of code to be generated.

The language elements are typed, named, and have appropriate templates defined for them. Performance testing code generation takes place entirely within the Eclipse workbench. The Eclipse extension point mechanism is used for code generation extensibility to accommodate new protocols.

The plug-in...

...supports code generation for the generic Load Test script extending the class...

...and generic test elements such as...

Specific protocols such as the plug-in...

...are implemented as extensions of the plug-in...

The plug-in...

...generates schedules implemented on top of...

For the code generation extension sample, see the plug-in...


Related information

  1. Code generation
  2. Extension points for code generation
  3. Generate test code
  4. Create the script class
  5. Code generation templates
  6. New protocol extensions
  7. Public APIs of codegen.core
  8. API references