org.apache.jmeter.engine.util
Class ValueReplacer
java.lang.Object
org.apache.jmeter.engine.util.ValueReplacer
public class ValueReplacer
- extends Object
Perfom replacement of ${variable} references.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueReplacer
public ValueReplacer()
ValueReplacer
public ValueReplacer(TestPlan tp)
setUserDefinedVariables
public void setUserDefinedVariables(Map<String,String> variables)
replaceValues
public void replaceValues(TestElement el)
throws InvalidVariableException
- Throws:
InvalidVariableException
reverseReplace
public void reverseReplace(TestElement el)
throws InvalidVariableException
- Throws:
InvalidVariableException
reverseReplace
public void reverseReplace(TestElement el,
boolean regexMatch)
throws InvalidVariableException
- Throws:
InvalidVariableException
undoReverseReplace
public void undoReverseReplace(TestElement el)
throws InvalidVariableException
- Throws:
InvalidVariableException
addVariable
public void addVariable(String name,
String value)
addVariables
public void addVariables(Map<String,String> vars)
- Add all the given variables to this replacer's variables map.
- Parameters:
vars
- A map of variable name-value pairs (String-to-String).
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.