Class TestFragmentControllerGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ClearGui, JMeterGUIComponent, Printable

public class TestFragmentControllerGui extends AbstractControllerGui
This defines a simple Test Fragment GUI that can be used instead of a Thread Group to allow for a non-execution part of the Test Plan that can be saved and referenced by a Module or Include Controller.
See Also:
  • Constructor Details

    • TestFragmentControllerGui

      public TestFragmentControllerGui()
  • Method Details

    • createTestElement

      public org.apache.jmeter.testelement.TestElement createTestElement()
      Implements JMeterGUIComponent.createTestElement()
      the Test Element object that the GUI component represents.
    • modifyTestElement

      public void modifyTestElement(org.apache.jmeter.testelement.TestElement controller)
      Implements JMeterGUIComponent.modifyTestElement(TestElement)
      Specified by:
      modifyTestElement in interface JMeterGUIComponent
      modifyTestElement in class AbstractJMeterGuiComponent
      controller - the TestElement to modify
    • getLabelResource

      public String getLabelResource()
      Description copied from interface: JMeterGUIComponent
      Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language.

      Normally this method should be overridden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.

      the resource name
    • getMenuCategories

      public Collection<String> getMenuCategories()
      Over-ride this so that we add ourselves to the Test Fragment Category instead.
      Specified by:
      getMenuCategories in interface JMeterGUIComponent
      getMenuCategories in class AbstractControllerGui
      a Collection of Strings, where each element is one of the constants defined in MenuFactory
      See Also:
    • createPopupMenu

      public JPopupMenu createPopupMenu()
      Redefined to remove change parent and insert parent menu
      Specified by:
      createPopupMenu in interface JMeterGUIComponent
      createPopupMenu in class AbstractControllerGui
      a JPopupMenu appropriate for the component.
      See Also: