Package org.apache.jmeter.engine.util
Class ReplaceStringWithFunctions
- java.lang.Object
-
- org.apache.jmeter.engine.util.ReplaceStringWithFunctions
-
public class ReplaceStringWithFunctions extends Object
Replaces a String containing functions with their Function properties equivalent, example: ${__time()}_${__threadNum()}_${__machineName()} will become a FunctionProperty of a CompoundVariable containing 3 functions
-
-
Constructor Summary
Constructors Constructor Description ReplaceStringWithFunctions(CompoundVariable masterFunction, Map<String,String> variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompoundVariable
getMasterFunction()
Map<String,String>
getVariables()
void
setMasterFunction(CompoundVariable variable)
void
setVariables(Map<String,String> map)
JMeterProperty
transformValue(JMeterProperty prop)
-
-
-
Constructor Detail
-
ReplaceStringWithFunctions
public ReplaceStringWithFunctions(CompoundVariable masterFunction, Map<String,String> variables)
-
-
Method Detail
-
transformValue
public JMeterProperty transformValue(JMeterProperty prop) throws InvalidVariableException
- Throws:
InvalidVariableException
-
setMasterFunction
public void setMasterFunction(CompoundVariable variable)
-
getMasterFunction
protected CompoundVariable getMasterFunction()
-
-