Class BaseTestElement

    • Field Detail

      • guiClass

        protected Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass
    • Constructor Detail

      • BaseTestElement

        protected BaseTestElement​(String name,
                                  Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass)
    • Method Detail

      • buildTreeUnder

        public org.apache.jorphan.collections.HashTree buildTreeUnder​(org.apache.jorphan.collections.HashTree parent,
                                                                      BuildTreeContext context)
        Description copied from interface: DslTestElement
        Builds the JMeter HashTree for this TestElement under the provided tree node.
        Specified by:
        buildTreeUnder in interface DslTestElement
        Parameters:
        parent - the node which will be the parent for the created tree.
        context - context information which contains information shared by elements while building the test plan tree (eg: adding additional items to test plan when a particular protocol element is added).
        Returns:
        The tree created under the parent node.
      • buildConfiguredTestElement

        protected org.apache.jmeter.testelement.TestElement buildConfiguredTestElement()
      • configureTestElement

        protected static org.apache.jmeter.testelement.TestElement configureTestElement​(org.apache.jmeter.testelement.TestElement ret,
                                                                                        String name,
                                                                                        Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass)
      • buildTestElement

        protected abstract org.apache.jmeter.testelement.TestElement buildTestElement()
      • loadBeanProperties

        public static void loadBeanProperties​(org.apache.jmeter.testelement.TestElement bean)
      • showInGui

        public void showInGui()
        Description copied from interface: DslTestElement
        Shows the test element in it's defined GUI in a popup window. This might be handy to visualize the element as it looks in JMeter GUI.
        Specified by:
        showInGui in interface DslTestElement
      • buildTestElementGui

        protected Component buildTestElementGui​(org.apache.jmeter.testelement.TestElement testElement)
      • showTestElementGui

        public void showTestElementGui​(Component guiComponent,
                                       Runnable closeListener)
      • showFrameWith

        protected void showFrameWith​(Component content,
                                     String title,
                                     int width,
                                     int height,
                                     Runnable closeListener)
      • showAndWaitFrameWith

        protected void showAndWaitFrameWith​(Component content,
                                            String title,
                                            int width,
                                            int height)
      • durationToSeconds

        protected static long durationToSeconds​(Duration duration)