public class XPath2Assertion 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 |
---|
XPath2Assertion() |
Modifier and Type | Method and Description |
---|---|
String |
getNamespaces() |
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 |
isNegated()
Negate the XPath test, that is return true if something is not found.
|
void |
setNamespaces(String namespaces) |
void |
setNegated(boolean negate) |
void |
setXPathString(String xpath)
Set the XPath String this will be used as an xpath
|
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 setNegated(boolean negate)
public boolean isNegated()
public void setNamespaces(String namespaces)
public String getNamespaces()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.