Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Building JMeter plug-in with Eclipse

Wiki Markup\[http://www.eclipse.org Eclipse\] is a very popular Java development environment.

Targetted to Eclipse 3.1 and JMeter 2.1 trunk version. JMeter isn't designed to be edited and build from Eclipse IDE (JMeter uses Ant build file and complex path/jar structure with optional dependencies), so some work has to be done before we get wheels running.

NOTE: the JMeter trunk code This page is very out of date - the current branch is rel-2-2. Also, there is an eclipse.classpath which can be used to set up the appropriate exclusions etc - sebb

Building JMeter from sources with Eclipse

Building JMeter from sources with Eclipse

It's useful to It's useful to have JMeter Eclipse project in hand, since you need to do debugging and possible bug fixing in JMeter itself.

  1. Check out JMeter trunk from Subversion

...

  • Set working directory to bin/ in your project
    • JMeter is hard coded to look up jmeter.properties in the launch folder
    • E.g. ${workspace_loc:SIPPerformanceStresser/bin}
  • Copy lib/ from jmeter-trunk to your plug-in project root
    • JMeter is hard coded to look up jars from ../lib
  • Main class: org.apache.jmeter.NewDriver

Creating components

Wiki MarkupJMeter 2.x uses its internal [TestBean]-framework for adding new components. For more information, see \[:DeveloperManual/TestBeanTutorial:Tutorial - Making a JMeter TestBean\], \[http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/extending/jmeter_tutorial.pdf?view=log&pathrev=325123 this PDF\] and JMeter source TestBean-framework for adding new components. For more information, see Tutorial - Making a JMeter TestBean, this PDF and JMeter source code

For each component you need

  1. Wiki Markup
    An element class which interits from \[TestElement, ConfigurationElement, XXXElement\] and implements [TestBean] interface. [TestBean] interface marks classes which JMeter plug-in class loader loads automatically.
    \\

2. Each TestBean class needs BeanInfoSupport class whichs describes the properties of the element class. This class name must be MyTestElement + BeanInfo, e.g. MyTestElementBeanInfo, or the class loader doesn't find it.

...

If widget labels are not read from resouces file, your the properties file of your component has a wrong filename

Wiki Markup\[mailto:mikko@redinnovation.com Email me\]