|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.assertions.XPathAssertion
public class XPathAssertion
Checks if the result is a well-formed XML content and whether it matches an XPath
Field Summary | |
---|---|
static String |
DEFAULT_XPATH
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
XPathAssertion()
|
Method Summary | |
---|---|
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 whitepsace 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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_XPATH
Constructor Detail |
---|
public XPathAssertion()
Method Detail |
---|
public AssertionResult getResult(SampleResult response)
getResult
in interface Assertion
response
- the SampleResult containing information about the Sample
(duration, success, etc)
public String getXPathString()
public void setXPathString(String xpath)
xpath
- Stringpublic void setWhitespace(boolean whitespace)
whitespace
- public void setValidating(boolean validate)
validate
- public void setNamespace(boolean namespace)
namespace
- public 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()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |