public class XPathExtractor extends AbstractScopedTestElement implements PostProcessor, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VALUE_AS_STRING |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
XPathExtractor() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue() |
boolean |
getFragment()
Should we return fragment as text, rather than text of fragment?
|
int |
getMatchNumber()
Return which Match to use.
|
String |
getMatchNumberAsString()
Return which Match to use.
|
String |
getRefName() |
String |
getXPathQuery() |
boolean |
isDownloadDTDs() |
boolean |
isQuiet() |
boolean |
isTolerant() |
boolean |
isValidating() |
boolean |
isWhitespace() |
void |
process()
Do the job - extract value from (X)HTML response using XPath Query.
|
boolean |
reportErrors() |
void |
setDefaultValue(String val) |
void |
setDownloadDTDs(boolean selected) |
void |
setFragment(boolean selected)
Should we return fragment as text, rather than text of fragment?
|
void |
setMatchNumber(int matchNumber)
Set which Match to use.
|
void |
setMatchNumber(String matchNumber)
Set which Match to use.
|
void |
setNameSpace(boolean val) |
void |
setQuiet(boolean val) |
void |
setRefName(String refName) |
void |
setReportErrors(boolean val) |
void |
setShowWarnings(boolean val) |
void |
setTolerant(boolean val) |
void |
setValidating(boolean selected) |
void |
setWhitespace(boolean selected) |
void |
setXPathQuery(String val) |
boolean |
showWarnings() |
boolean |
useNameSpace() |
fetchScope, getSampleList, getScopeName, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removed
public static final String DEFAULT_VALUE_AS_STRING
public void process()
process
in interface PostProcessor
public void setXPathQuery(String val)
public String getXPathQuery()
public void setRefName(String refName)
public String getRefName()
public void setDefaultValue(String val)
public String getDefaultValue()
public void setTolerant(boolean val)
public boolean isTolerant()
public void setNameSpace(boolean val)
public boolean useNameSpace()
public void setReportErrors(boolean val)
public boolean reportErrors()
public void setShowWarnings(boolean val)
public boolean showWarnings()
public void setQuiet(boolean val)
public boolean isQuiet()
public boolean getFragment()
public void setFragment(boolean selected)
selected
- true to return fragment.public void setWhitespace(boolean selected)
public boolean isWhitespace()
public void setValidating(boolean selected)
public boolean isValidating()
public void setDownloadDTDs(boolean selected)
public boolean isDownloadDTDs()
public void setMatchNumber(int matchNumber)
0
, which is interpreted as meaning random.matchNumber
- The number of the match to be usedpublic void setMatchNumber(String matchNumber)
0
, which is interpreted as meaning random.matchNumber
- The number of the match to be usedpublic int getMatchNumber()
0
, which is interpreted as meaning random.public String getMatchNumberAsString()
0
, which is interpreted as meaning random.Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.