Class XMLAssertionGui

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

public class XMLAssertionGui extends AbstractAssertionGui
See Also:
  • Constructor Details

    • XMLAssertionGui

      public XMLAssertionGui()
      The constructor.
  • Method Details

    • getLabelResource

      public String getLabelResource()
      Returns the label to be shown within the JTree-Component.
      Returns:
      the resource name
    • createTestElement

      public org.apache.jmeter.testelement.TestElement createTestElement()
      Description copied from interface: JMeterGUIComponent
      JMeter test components are separated into a model and a GUI representation. The model holds the data and the GUI displays it. The GUI class is responsible for knowing how to create and initialize with data the model class that it knows how to display, and this method is called when new test elements are created.

      Since 5.6.3, the default implementation is as follows, and subclasses should override JMeterGUIComponent.makeTestElement()

       public TestElement createTestElement() {
           TestElement element = makeTestElement();
           assignDefaultValues(element);
           return el;
       }
       

      Before 5.6.3 the canonical implementation was as follows, however, it is recommended to avoid overriding JMeterGUIComponent.createTestElement() and override JMeterGUIComponent.makeTestElement() instead.

       public TestElement createTestElement() {
           TestElementXYZ el = new TestElementXYZ();
           modifyTestElement(el);
           return el;
       }
       
      Returns:
      the Test Element object that the GUI component represents.
    • modifyTestElement

      public void modifyTestElement(org.apache.jmeter.testelement.TestElement el)
      Modifies a given TestElement to mirror the data in the gui components.
      Specified by:
      modifyTestElement in interface JMeterGUIComponent
      Overrides:
      modifyTestElement in class AbstractJMeterGuiComponent
      Parameters:
      el - the TestElement to modify
      See Also: