Search in sources :

Example 6 with GenericController

use of org.apache.jmeter.control.GenericController in project jmeter by apache.

the class GenerateTreeGui method addSimpleController.

/**
     * Helper method to add a Simple Controller to contain the elements.
     * Called from Application Thread that needs to update GUI (JMeterTreeModel)
     * @param model
     *            Test component tree model
     * @param node
     *            Node in the tree where we will add the Controller
     * @param name
     *            A name for the Controller
     * @return the new node
     */
private JMeterTreeNode addSimpleController(JMeterTreeModel model, JMeterTreeNode node, String name) {
    final TestElement sc = new GenericController();
    sc.setProperty(TestElement.GUI_CLASS, LOGIC_CONTROLLER_GUI);
    // Use old style
    sc.setProperty(TestElement.NAME, name);
    return addToTree(model, node, sc);
}
Also used : GenericController(org.apache.jmeter.control.GenericController) TestElement(org.apache.jmeter.testelement.TestElement) ConfigTestElement(org.apache.jmeter.config.ConfigTestElement)

Example 7 with GenericController

use of org.apache.jmeter.control.GenericController in project jmeter by apache.

the class LogicControllerGui method createTestElement.

/* Implements JMeterGUIComponent.createTestElement() */
@Override
public TestElement createTestElement() {
    GenericController lc = new GenericController();
    configureTestElement(lc);
    return lc;
}
Also used : GenericController(org.apache.jmeter.control.GenericController)

Aggregations

GenericController (org.apache.jmeter.control.GenericController)7 ConfigTestElement (org.apache.jmeter.config.ConfigTestElement)3 TestElement (org.apache.jmeter.testelement.TestElement)2 ListedHashTree (org.apache.jorphan.collections.ListedHashTree)2 Test (org.junit.Test)2 IOException (java.io.IOException)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 MalformedURLException (java.net.MalformedURLException)1 GeneralSecurityException (java.security.GeneralSecurityException)1 UnrecoverableKeyException (java.security.UnrecoverableKeyException)1 CertificateExpiredException (java.security.cert.CertificateExpiredException)1 CertificateNotYetValidException (java.security.cert.CertificateNotYetValidException)1 Argument (org.apache.jmeter.config.Argument)1 Arguments (org.apache.jmeter.config.Arguments)1 IllegalUserActionException (org.apache.jmeter.exceptions.IllegalUserActionException)1 InvalidVariableException (org.apache.jmeter.functions.InvalidVariableException)1 JMeterTreeModel (org.apache.jmeter.gui.tree.JMeterTreeModel)1 JMeterTreeNode (org.apache.jmeter.gui.tree.JMeterTreeNode)1 ResultCollector (org.apache.jmeter.reporters.ResultCollector)1 TestPlan (org.apache.jmeter.testelement.TestPlan)1