Package org.apache.jmeter.testelement.property

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


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


        while (iter.hasNext()) {
            String key = iter.next();
            String value = getVariables().get(key);
            input = StringUtilities.substitute(input, "${" + key + "}", value);
        }
        StringProperty newProp = new StringProperty(prop.getName(), input);
        return newProp;
    }
View Full Code Here

                user_Defined.isSelected()));

        if (addTest.isSelected())
        {
            element.setProperty(
                new StringProperty(LDAPSampler.TEST, LDAPSampler.ADD));
            element.setProperty(
                new StringProperty(LDAPSampler.BASE_ENTRY_DN, add.getText()));
            element.setProperty(
                new TestElementProperty(
                    LDAPSampler.ARGUMENTS,
                    tableAddPanel.createTestElement()));
        }

        if (modifyTest.isSelected())
        {
            element.setProperty(
                new StringProperty(LDAPSampler.TEST, LDAPSampler.MODIFY));
            element.setProperty(
                new StringProperty(
                    LDAPSampler.BASE_ENTRY_DN,
                    modify.getText()));
            element.setProperty(
                new TestElementProperty(
                    LDAPSampler.ARGUMENTS,
                    tableModifyPanel.createTestElement()));
        }

        if (deleteTest.isSelected())
        {
            element.setProperty(
                new StringProperty(LDAPSampler.TEST, LDAPSampler.DELETE));
            element.setProperty(
                new StringProperty(LDAPSampler.DELETE, delete.getText()));
        }

        if (searchTest.isSelected())
        {
            element.setProperty(
                new StringProperty(LDAPSampler.TEST, LDAPSampler.SEARCHBASE));
            element.setProperty(
                new StringProperty(
                    LDAPSampler.SEARCHBASE,
                    searchbase.getText()));
            element.setProperty(
                new StringProperty(
                    LDAPSampler.SEARCHFILTER,
                    searchfilter.getText()));
        }
    }
View Full Code Here

   public ResponseAssertion(String field, int type, String string)
   {
      this();
      setTestField(field);
      setTestType(type);
      getTestStrings().addProperty(new StringProperty(string,string));
   }
View Full Code Here

    *
    *@param  testString  !ToDo (Parameter description)
    ***********************************************************/
   public void addTestString(String testString)
   {
      getTestStrings().addProperty(new StringProperty(testString,testString));
   }
View Full Code Here

   * Sets the doctype setting
   * @param inDoctype
   */
  public void setDoctype(String inDoctype) {
    if ((inDoctype == null) || (inDoctype.trim().equals(""))) {
      setProperty(new StringProperty(DOCTYPE_KEY, DEFAULT_DOCTYPE));
    } else {
      setProperty(new StringProperty(DOCTYPE_KEY, inDoctype));
    }
  }
View Full Code Here

        return result;
    }

    public void setAllowedMD5Hex(String hex) {
        setProperty(new StringProperty(MD5HexAssertion.MD5HEX_KEY, hex));
    }
View Full Code Here

        setProperty(new DoubleProperty(RANGE, range));
    }

    public void setRange(String range)
    {
        setProperty(new StringProperty(RANGE, range));
    }
View Full Code Here

    }
   
   
    public void setInputVal(String inputValue)
    {
        setProperty(new StringProperty(INPUTVAL, inputValue));
    }
View Full Code Here

        return getPropertyAsString(INPUTVAL);
    }

    public void setReturnVal(String inputValue)
    {
        setProperty(new StringProperty(RETURNVAL, inputValue));
    }
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.