org.apache.jmeter.extractor
Class RegexExtractor
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.extractor.RegexExtractor
- All Implemented Interfaces:
- Cloneable, PostProcessor, Serializable, TestElement
- public class RegexExtractor
- extends AbstractTestElement
- implements PostProcessor, Serializable
- Version:
- $Revision: 1.15.2.1 $
- See Also:
- Serialized Form
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, canRemove, clear, clearTemporary, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse, traverseCollection, traverseMap, traverseProperty |
USEHEADERS
public static final String USEHEADERS
- See Also:
- Constant Field Values
REGEX
public static final String REGEX
- See Also:
- Constant Field Values
REFNAME
public static final String REFNAME
- See Also:
- Constant Field Values
MATCH_NUMBER
public static final String MATCH_NUMBER
- See Also:
- Constant Field Values
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
TEMPLATE
public static final String TEMPLATE
- See Also:
- Constant Field Values
RegexExtractor
public RegexExtractor()
process
public void process()
- Parses the response data using regular expressions and saving the results
into variables for use later in the test.
- Specified by:
process
in interface PostProcessor
- See Also:
PostProcessor.process()
clone
public Object clone()
- Specified by:
clone
in interface TestElement
- Overrides:
clone
in class AbstractTestElement
setRegex
public void setRegex(String regex)
getRegex
public String getRegex()
setRefName
public void setRefName(String refName)
getRefName
public String getRefName()
setMatchNumber
public void setMatchNumber(int matchNumber)
- Set which Match to use. This can be any positive number, indicating the
exact match to use, or 0, which is interpreted as meaning random.
- Parameters:
matchNumber
-
getMatchNumber
public int getMatchNumber()
setDefaultValue
public void setDefaultValue(String defaultValue)
- Sets the value of the variable if no matches are found
- Parameters:
defaultValue
-
getDefaultValue
public String getDefaultValue()
setTemplate
public void setTemplate(String template)
getTemplate
public String getTemplate()
Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.