public class XPathAssertion extends AbstractScopedAssertion implements Serializable, Assertion
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XPATH |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
XPathAssertion() |
Modifier and Type | Method and Description |
---|---|
AssertionResult |
getResult(SampleResult response)
Returns the result of the Assertion.
|
String |
getXPathString()
Get The XPath String that will be used in matching the document
|
boolean |
isDownloadDTDs() |
boolean |
isNamespace()
Is this namespace aware?
|
boolean |
isNegated()
Negate the XPath test, that is return true if something is not found.
|
boolean |
isQuiet() |
boolean |
isTolerant()
Is this using tolerant mode?
|
boolean |
isValidating()
Is this validating
|
boolean |
isWhitespace()
Is this whitespace ignored.
|
boolean |
reportErrors() |
void |
setDownloadDTDs(boolean val) |
void |
setNamespace(boolean namespace)
Set whether this is namespace aware
|
void |
setNegated(boolean negate) |
void |
setQuiet(boolean val) |
void |
setReportErrors(boolean val) |
void |
setShowWarnings(boolean val) |
void |
setTolerant(boolean tolerant)
Set tolerant mode if required
|
void |
setValidating(boolean validate)
Set use validation
|
void |
setWhitespace(boolean whitespace)
Set whether to ignore element whitespace
|
void |
setXPathString(String xpath)
Set the XPath String this will be used as an xpath
|
boolean |
showWarnings() |
getScopeName
fetchScope, getSampleList, 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_XPATH
public AssertionResult getResult(SampleResult response)
public String getXPathString()
public void setXPathString(String xpath)
xpath
- Stringpublic void setWhitespace(boolean whitespace)
whitespace
- Flag whether whitespace elements should be ignoredpublic void setValidating(boolean validate)
validate
- Flag whether validation should be usedpublic void setNamespace(boolean namespace)
namespace
- Flag whether namespace should be usedpublic void setTolerant(boolean tolerant)
tolerant
- true/falsepublic void setNegated(boolean negate)
public boolean isWhitespace()
public boolean isValidating()
public boolean isNamespace()
public boolean isTolerant()
public boolean isNegated()
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 void setDownloadDTDs(boolean val)
public boolean isDownloadDTDs()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.