Package org.apache.jmeter.testelement.property

Examples of org.apache.jmeter.testelement.property.StringProperty


     *
     * @param newValue  the new value
     */
    public void setValue(String newValue)
    {
        setProperty(new StringProperty(VALUE, newValue));
    }
View Full Code Here


     *
     * @param newMetaData  the new metadata
     */
    public void setMetaData(String newMetaData)
    {
        setProperty(new StringProperty(METADATA, newMetaData));
    }
View Full Code Here

    }

    /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
    public void modifyTestElement(TestElement wb)
    {
        wb.setProperty(new StringProperty(TestElement.NAME, getName()));
        wb.setProperty(
            new StringProperty(
                TestElement.GUI_CLASS,
                this.getClass().getName()));
        wb.setProperty(
            new StringProperty(
                TestElement.TEST_CLASS,
                WorkBench.class.getName()));
    }
View Full Code Here

        setProperty(new LongProperty(SECONDS, seconds));
    }

    public void setRuntime(String seconds)
    {
        setProperty(new StringProperty(SECONDS, seconds));
    }
View Full Code Here

     *
     * @param mc  the TestElement being created.
     */
    protected void configureTestElement(TestElement mc)
    {
        mc.setProperty(new StringProperty(TestElement.NAME, getName()));

        mc.setProperty(
            new StringProperty(
                TestElement.GUI_CLASS,
                this.getClass().getName()));

        mc.setProperty(
            new StringProperty(
                TestElement.TEST_CLASS,
                mc.getClass().getName()));

        //This  stores the state of the TestElement
        log.debug("setting element to enabled: " + enabled);
View Full Code Here

    /**
     * Condition Accessor - this is gonna be like     ${count}<10
     */
    public void setCondition(String condition) {
      setProperty(new StringProperty(CONDITION, condition));
    }
View Full Code Here

    /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
    public void modifyTestElement(TestElement element)
    {
        configureTestElement(element);
        element.setProperty(
            new StringProperty(ConfigTestElement.USERNAME, username.getText()));
       
        String passwordString = new String(password.getPassword());
        element.setProperty(
            new StringProperty(ConfigTestElement.PASSWORD, passwordString));
    }
View Full Code Here

  /**
   * @param string the condition to save
   */
  public void setCondition(String string) {
    log.debug("setCondition("+ string+")");
    setProperty(new StringProperty(CONDITION, string));
  }
View Full Code Here

        setProperty(new IntegerProperty(LOOPS, loops));
    }

    public void setLoops(String loopValue)
    {
        setProperty(new StringProperty(LOOPS, loopValue));
    }
View Full Code Here

    }

    public void setName(String name)
    {
        ((TestElement) getUserObject()).setProperty(
            new StringProperty(TestElement.NAME, name));
    }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.testelement.property.StringProperty

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.