Package org.apache.jmeter.config

Examples of org.apache.jmeter.config.ConfigTestElement


    filename.setText((String)element.getProperty(FTPSampler.FILENAME));
  }

  public TestElement createTestElement()
  {
    ConfigTestElement element = new ConfigTestElement();
    configureTestElement(element);
    element.setProperty(FTPSampler.SERVER,server.getText());
    element.setProperty(FTPSampler.FILENAME,filename.getText());
    return element;
  }
View Full Code Here


  private void configureWithConfigElements(Sampler sam,List configs)
  {
    Iterator iter = configs.iterator();
    while(iter.hasNext())
    {
      ConfigTestElement config = (ConfigTestElement)iter.next();
      TestElement clonedConfig = (TestElement)cloneIfNecessary(config);
      if(objectsWithFunctions.contains(config))
      {
        replaceValues(clonedConfig);
      }
View Full Code Here

     ***************************************/
    public void testConfigGathering() throws Exception
    {
      ListedHashTree testing = new ListedHashTree();
      GenericController controller = new GenericController();
      ConfigTestElement config1 = new ConfigTestElement();
      config1.setName("config1");
      config1.setProperty("test.property", "A test value");
      TestSampler sampler = new TestSampler();
      sampler.setName("sampler");
      testing.add(controller, config1);
      testing.add(controller, sampler);
      TestCompiler.initialize();
View Full Code Here

    password.setText((String)element.getProperty(ConfigTestElement.PASSWORD));
  }

  public TestElement createTestElement()
  {
    ConfigTestElement element = new ConfigTestElement();
    configureTestElement(element);
    element.setProperty(ConfigTestElement.USERNAME,username.getText());
    element.setProperty(ConfigTestElement.PASSWORD,password.getText());
    return element;
  }
View Full Code Here

    return JMeterUtils.getResString("database_login_title");
  }

  public TestElement createTestElement()
  {
    ConfigTestElement element = new ConfigTestElement();
    configureTestElement(element);
    element.setProperty(JDBCSampler.URL,urlField.getText());
    element.setProperty(JDBCSampler.DRIVER,driverField.getText());
    element.addTestElement(loginGui.createTestElement());
    return element;
  }
View Full Code Here

    super.configure(element);
  }

  public TestElement createTestElement()
  {
    ConfigTestElement element = new ConfigTestElement();
    configureTestElement(element);
    element.setProperty(JDBCSampler.QUERY,sqlField.getText());
    return element;
  }
View Full Code Here

    maxUseField.setText(element.getProperty(JDBCSampler.MAXUSE).toString());
  }

  public TestElement createTestElement()
  {
    ConfigTestElement element = new ConfigTestElement();
    configureTestElement(element);
    element.setProperty(JDBCSampler.CONNECTIONS,connField.getText());
    element.setProperty(JDBCSampler.MAXUSE,maxUseField.getText());
    return element;
  }
View Full Code Here

        filename.setText(element.getPropertyAsString(FTPSampler.FILENAME));
    }

    public TestElement createTestElement()
    {
        ConfigTestElement element = new ConfigTestElement();
        modifyTestElement(element);
        return element;
    }
View Full Code Here

    private void configureWithConfigElements(Sampler sam, List configs)
    {
        Iterator iter = configs.iterator();
        while (iter.hasNext())
        {
            ConfigTestElement config = (ConfigTestElement)iter.next();
            sam.addTestElement(config);
        }
    }
View Full Code Here

        public void testConfigGathering() throws Exception
        {
            ListedHashTree testing = new ListedHashTree();
            GenericController controller = new GenericController();
            ConfigTestElement config1 = new ConfigTestElement();
            config1.setName("config1");
            config1.setProperty("test.property", "A test value");
            TestSampler sampler = new TestSampler();
            sampler.setName("sampler");
            testing.add(controller, config1);
            testing.add(controller, sampler);
            TestCompiler.initialize();
View Full Code Here

TOP

Related Classes of org.apache.jmeter.config.ConfigTestElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.