Package org.apache.jmeter.config

Examples of org.apache.jmeter.config.ConfigTestElement


         * See https://issues.apache.org/bugzilla/show_bug.cgi?id=53534
         */
        public void testReplaceFunctionWithBackslash() throws Exception {
            ValueReplacer replacer = new ValueReplacer();
            replacer.setUserDefinedVariables(variables.getUserDefinedVariables());
            TestElement element = new ConfigTestElement();
            String input = "${server} \\ \\\\ \\\\\\ \\, ";
            element.setProperty(new StringProperty("domain", input));
            replacer.replaceValues(element);
            //log.debug("domain property = " + element.getProperty("domain"));
            element.setRunningVersion(true);
            assertEquals("jakarta.apache.org \\ \\ \\\\ , ", element.getPropertyAsString("domain"));
        }
View Full Code Here


    }

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

  public void add(SampleResult sample) {
  }

  public TestElement createTestElement() {
    TestElement el = new ConfigTestElement();// TODO replace with simpler version?
    modifyTestElement(el);
    return el;
  }
View Full Code Here

          || name.equals(TestElement.TEST_CLASS)) {
        continue; // go on with next property.
      }

      for (Iterator configs = configurations.iterator(); configs.hasNext();) {
        ConfigTestElement config = (ConfigTestElement) configs.next();

        String configValue = config.getPropertyAsString(name);

        if (configValue != null && configValue.length() > 0) {
          if (configValue.equals(value)) {
            sampler.setProperty(name, ""); // $NON-NLS-1$
          }
View Full Code Here

    }
  }

  /* Implements JMeterGUIComponent.createTestElement() */
  public TestElement createTestElement() {
    ConfigTestElement element = new ConfigTestElement();
    modifyTestElement(element);
    return element;
  }
View Full Code Here

            getBox.setSelected(true);           
        }
  }

  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

    contentEncoding.setText(""); // $NON-NLS-1$
    argsPanel.clear();
  }

  public TestElement createTestElement() {
    ConfigTestElement element = new ConfigTestElement();

    this.configureTestElement(element);
    modifyTestElement(element);
    return element;
    }
View Full Code Here

  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    ConfigTestElement config = new ConfigTestElement();
    modifyTestElement(config);
    return config;
  }
View Full Code Here

   * Modifies a given TestElement to mirror the data in the gui components.
   *
   * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
   */
  public void modifyTestElement(TestElement config) {
    ConfigTestElement cfg = (ConfigTestElement ) config;
    ConfigTestElement el = (ConfigTestElement) urlConfig.createTestElement();
        cfg.clear(); // need to clear because the
    cfg.addConfigElement(el);
    super.configureTestElement(config);
    if (imageParser.isSelected()) {
      config.setProperty(new BooleanProperty(HTTPSamplerBase.IMAGE_PARSER, true));
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.