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 TestElement createTestElement()
      Implements JMeterGUIComponent.createTestElement()
      Returns:
      the Test Element object that the GUI component represents.
    • modifyTestElement

      public void modifyTestElement(TestElement controller)
      Implements JMeterGUIComponent.modifyTestElement(TestElement)
      Parameters:
      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 overriden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.
      Returns:
      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
      Overrides:
      getMenuCategories in class AbstractControllerGui
      Returns:
      a Collection of Strings, where each element is one of the constants defined in MenuFactory
      See Also: