Search in sources :

Example 1 with FunctionProperty

use of org.apache.jmeter.testelement.property.FunctionProperty in project jmeter by apache.

the class ReplaceStringWithFunctions method transformValue.

@Override
public JMeterProperty transformValue(JMeterProperty prop) throws InvalidVariableException {
    JMeterProperty newValue = prop;
    getMasterFunction().clear();
    getMasterFunction().setParameters(prop.getStringValue());
    if (getMasterFunction().hasFunction()) {
        newValue = new FunctionProperty(prop.getName(), getMasterFunction().getFunction());
    }
    return newValue;
}
Also used : JMeterProperty(org.apache.jmeter.testelement.property.JMeterProperty) FunctionProperty(org.apache.jmeter.testelement.property.FunctionProperty)

Aggregations

FunctionProperty (org.apache.jmeter.testelement.property.FunctionProperty)1 JMeterProperty (org.apache.jmeter.testelement.property.JMeterProperty)1