Checks if the result is a well-formed XML content and whether it matches an
XPath
getResult
public AssertionResult getResult(SampleResult response)
Returns the result of the Assertion. Checks if the result is well-formed
XML, and that the XPath expression is matched (or not, as the case may
be)
- getResult in interface Assertion
getXPathString
public String getXPathString()
Get The XPath String that will be used in matching the document
isNamespace
public boolean isNamespace()
Is this namespace aware?
isNegated
public boolean isNegated()
Negate the XPath test, that is return true if something is not found.
isQuiet
public boolean isQuiet()
isTolerant
public boolean isTolerant()
Is this using tolerant mode?
isValidating
public boolean isValidating()
Is this validating
isWhitespace
public boolean isWhitespace()
Is this whitepsace ignored.
reportErrors
public boolean reportErrors()
setNamespace
public void setNamespace(boolean namespace)
Set whether this is namespace aware
setNegated
public void setNegated(boolean negate)
setQuiet
public void setQuiet(boolean val)
setReportErrors
public void setReportErrors(boolean val)
setShowWarnings
public void setShowWarnings(boolean val)
setTolerant
public void setTolerant(boolean tolerant)
Set tolerant mode if required
setValidating
public void setValidating(boolean validate)
Set use validation
setWhitespace
public void setWhitespace(boolean whitespace)
Set whether to ignore element whitespace
setXPathString
public void setXPathString(String xpath)
Set the XPath String this will be used as an xpath
showWarnings
public boolean showWarnings()