Package org.apache.jmeter.testelement.property

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


        assertEquals("$3.47", newProp.getStringValue());
    }

    public void testParseExample10() throws Exception
    {
        StringProperty prop =
            new StringProperty(
                "html",
                "${__regexFunction(\\ "
                    + "(\\\\\\$\\d+\\.\\d+\\,\\\\$\\d+\\.\\d+),$1$)}");
        JMeterProperty newProp = transformer.transformValue(prop);
        newProp.setRunningVersion(true);
View Full Code Here


        assertEquals("$3.47,$5.67", newProp.getStringValue());
    }

    public void testNestedExample1() throws Exception
    {
        StringProperty prop =
            new StringProperty(
                "html",
                "${__regexFunction(<html>(${my_regex})</html>,"
                    + "$1$)}${__regexFunction(<html>(.*o)(.*o)(.*)"
                    + "</html>,$1$$3$)}");
        JMeterProperty newProp = transformer.transformValue(prop);
View Full Code Here

        assertEquals("hello worldhellorld", newProp.getStringValue());
    }

    public void testNestedExample2() throws Exception
    {
        StringProperty prop =
            new StringProperty(
                "html",
                "${__regexFunction(<html>(${my_regex})</html>,$1$)}");
        JMeterProperty newProp = transformer.transformValue(prop);
        newProp.setRunningVersion(true);
        assertEquals(
View Full Code Here

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

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

            assertTrue(
                variables.getUserDefinedVariables().containsKey("server"));
            assertTrue(replacer.variables.containsKey("server"));
            TestElement element = new TestPlan();
            element.setProperty(
                new StringProperty("domain", "jakarta.apache.org"));
            List args = new ArrayList();
            args.add("username is jack");
            args.add("jacks_password");
            element.setProperty(new CollectionProperty("args", args));
            replacer.reverseReplace(element);
View Full Code Here

        {
            ValueReplacer replacer = new ValueReplacer();
            replacer.setUserDefinedVariables(
                variables.getUserDefinedVariables());
            TestElement element = new ConfigTestElement();
            element.setProperty(new StringProperty("domain", "${server}"));
            replacer.replaceValues(element);
            log.debug("domain property = " + element.getProperty("domain"));
            element.setRunningVersion(true);
            assertEquals(
                "jakarta.apache.org",
View Full Code Here

     * @param name   the argument name
     * @param value  the argument value
     */
    public Argument(String name, String value)
    {
        setProperty(new StringProperty(ARG_NAME, name));
        setProperty(new StringProperty(VALUE, value));
    }
View Full Code Here

     * @param value    the argument value
     * @param metadata the argument metadata
     */
    public Argument(String name, String value, String metadata)
    {
        setProperty(new StringProperty(ARG_NAME, name));
        setProperty(new StringProperty(VALUE, value));
        setProperty(new StringProperty(METADATA, metadata));
    }
View Full Code Here

     *
     * @param newName  the new name
     */
    public void setName(String newName)
    {
        setProperty(new StringProperty(ARG_NAME, newName));
    }
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.