Class XPathAssertionWrapper
- java.lang.Object
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicTestElementWrapper<T>
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicChildTestElementWrapper<T>
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.AbstractScopedTestElementWrapper<org.apache.jmeter.assertions.XPathAssertion,org.apache.jmeter.assertions.gui.XPathAssertionGui>
-
- org.anasoid.jmc.core.wrapper.jmeter.assertions.XPathAssertionWrapper
-
- All Implemented Interfaces:
java.io.Serializable,Validator,JMeterGUIWrapper<org.apache.jmeter.assertions.gui.XPathAssertionGui>,AssertionWrapper<org.apache.jmeter.assertions.XPathAssertion>,TestElementTreeNodeWrapper<org.apache.jmeter.assertions.XPathAssertion>,TestElementWrapper<org.apache.jmeter.assertions.XPathAssertion>
@JmcDefaultName("XPath Assertion") public class XPathAssertionWrapper extends AbstractScopedTestElementWrapper<org.apache.jmeter.assertions.XPathAssertion,org.apache.jmeter.assertions.gui.XPathAssertionGui> implements AssertionWrapper<org.apache.jmeter.assertions.XPathAssertion>, Validator
Wrapper for XPathAssertion.- See Also:
XPathAssertion, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXPathAssertionWrapper.XPathAssertionWrapperBuilder<C extends XPathAssertionWrapper,B extends XPathAssertionWrapper.XPathAssertionWrapperBuilder<C,B>>-
Nested classes/interfaces inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.AbstractScopedTestElementWrapper
AbstractScopedTestElementWrapper.AbstractScopedTestElementWrapperBuilder<T extends org.apache.jmeter.testelement.AbstractScopedTestElement,G extends org.apache.jmeter.gui.AbstractScopedJMeterGuiComponent,C extends AbstractScopedTestElementWrapper<T,G>,B extends AbstractScopedTestElementWrapper.AbstractScopedTestElementWrapperBuilder<T,G,C,B>>
-
Nested classes/interfaces inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicChildTestElementWrapper
AbstractBasicChildTestElementWrapper.AbstractBasicChildTestElementWrapperBuilder<T extends org.apache.jmeter.testelement.AbstractTestElement,C extends AbstractBasicChildTestElementWrapper<T>,B extends AbstractBasicChildTestElementWrapper.AbstractBasicChildTestElementWrapperBuilder<T,C,B>>
-
Nested classes/interfaces inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicTestElementWrapper
AbstractBasicTestElementWrapper.AbstractBasicTestElementWrapperBuilder<T extends org.apache.jmeter.testelement.AbstractTestElement,C extends AbstractBasicTestElementWrapper<T>,B extends AbstractBasicTestElementWrapper.AbstractBasicTestElementWrapperBuilder<T,C,B>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXPathAssertionWrapper(XPathAssertionWrapper.XPathAssertionWrapperBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XPathAssertionWrapper.XPathAssertionWrapperBuilder<?,?>builder()java.lang.Class<?>getGuiClass()Gui Test Class used by Jmeter TestElement.GUI_CLASS @See TestElementjava.lang.Class<?>getTestClass()Test Class used by Jmeter TestElement.TEST_CLASS.java.lang.StringgetXpath()Element query in XPath language.booleanisDownloadDtds()If selected, external DTDs are fetched.booleanisNamespace()If checked, then the XML parser will use namespace resolution.(see note below on NAMESPACES) Note that currently only namespaces declared on the root element will be recognised.booleanisNegate()Will fail if xpath expression returns true or matches, succeed otherwise.booleanisTidyQuiet()Sets the Tidy Quiet flag.booleanisTidyReportErrors()If a Tidy error occurs, then set the Assertion accordingly.booleanisTidyShowWarnings()Sets the Tidy showWarnings option.booleanisUseTidy()If checked use Tidy to parse HTML response into XHTML.booleanisValidate()Check the document against its schema.booleanisWhitespace()Ignore Element Whitespace.voidsetDownloadDtds(boolean downloadDtds)If selected, external DTDs are fetched.voidsetNamespace(boolean namespace)If checked, then the XML parser will use namespace resolution.(see note below on NAMESPACES) Note that currently only namespaces declared on the root element will be recognised.voidsetNegate(boolean negate)Will fail if xpath expression returns true or matches, succeed otherwise.voidsetTidyQuiet(boolean tidyQuiet)Sets the Tidy Quiet flag.voidsetTidyReportErrors(boolean tidyReportErrors)If a Tidy error occurs, then set the Assertion accordingly.voidsetTidyShowWarnings(boolean tidyShowWarnings)Sets the Tidy showWarnings option.voidsetUseTidy(boolean useTidy)If checked use Tidy to parse HTML response into XHTML.voidsetValidate(boolean validate)Check the document against its schema.voidsetWhitespace(boolean whitespace)Ignore Element Whitespace.voidsetXpath(java.lang.String xpath)Element query in XPath language.XPathAssertionWrapper.XPathAssertionWrapperBuilder<?,?>toBuilder()voidvalidate()Validate Test element.-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.AbstractScopedTestElementWrapper
getScope, getScopeVariable, setScope
-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicChildTestElementWrapper
getComment, getName, isEnabled, setComment, setEnabled, setName
-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicTestElementWrapper
getChilds, getGuiClassAsString, getTags, getTestClassAsString, init, internalInit, isFullClassName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.anasoid.jmc.core.wrapper.jmeter.testelement.TestElementWrapper
getChilds, getTags, getTestClassAsString, init
-
-
-
-
Constructor Detail
-
XPathAssertionWrapper
protected XPathAssertionWrapper(XPathAssertionWrapper.XPathAssertionWrapperBuilder<?,?> b)
-
-
Method Detail
-
validate
public void validate() throws ConversionIllegalStateExceptionDescription copied from interface:ValidatorValidate Test element.- Specified by:
validatein interfaceValidator- Throws:
ConversionIllegalStateException
-
getGuiClass
public java.lang.Class<?> getGuiClass()
Description copied from interface:JMeterGUIWrapperGui Test Class used by Jmeter TestElement.GUI_CLASS @See TestElement- Specified by:
getGuiClassin interfaceJMeterGUIWrapper<org.apache.jmeter.assertions.gui.XPathAssertionGui>
-
getTestClass
public java.lang.Class<?> getTestClass()
Description copied from interface:TestElementWrapperTest Class used by Jmeter TestElement.TEST_CLASS. @See TestElement.- Specified by:
getTestClassin interfaceTestElementWrapper<org.apache.jmeter.assertions.XPathAssertion>
-
builder
public static XPathAssertionWrapper.XPathAssertionWrapperBuilder<?,?> builder()
-
toBuilder
public XPathAssertionWrapper.XPathAssertionWrapperBuilder<?,?> toBuilder()
-
getXpath
public java.lang.String getXpath()
Element query in XPath language. Can return more than one match.
-
setXpath
public void setXpath(java.lang.String xpath)
Element query in XPath language. Can return more than one match.
-
isNegate
public boolean isNegate()
Will fail if xpath expression returns true or matches, succeed otherwise.
-
setNegate
public void setNegate(boolean negate)
Will fail if xpath expression returns true or matches, succeed otherwise.
-
isValidate
public boolean isValidate()
Check the document against its schema. (If Tidy is not selected).
-
setValidate
public void setValidate(boolean validate)
Check the document against its schema. (If Tidy is not selected).
-
isNamespace
public boolean isNamespace()
If checked, then the XML parser will use namespace resolution.(see note below on NAMESPACES) Note that currently only namespaces declared on the root element will be recognised. See below for user-definition of additional workspace names. (If Tidy is not selected).
-
setNamespace
public void setNamespace(boolean namespace)
If checked, then the XML parser will use namespace resolution.(see note below on NAMESPACES) Note that currently only namespaces declared on the root element will be recognised. See below for user-definition of additional workspace names. (If Tidy is not selected).
-
isWhitespace
public boolean isWhitespace()
Ignore Element Whitespace. (If Tidy is not selected).
-
setWhitespace
public void setWhitespace(boolean whitespace)
Ignore Element Whitespace. (If Tidy is not selected).
-
isDownloadDtds
public boolean isDownloadDtds()
If selected, external DTDs are fetched. (If Tidy is not selected).
-
setDownloadDtds
public void setDownloadDtds(boolean downloadDtds)
If selected, external DTDs are fetched. (If Tidy is not selected).
-
isUseTidy
public boolean isUseTidy()
If checked use Tidy to parse HTML response into XHTML."Use Tidy" should be checked on for HTML response. Such response is converted to valid XHTML (XML compatible HTML) using Tidy "Use Tidy" should be unchecked for both XHTML or XML response (for example RSS)
-
setUseTidy
public void setUseTidy(boolean useTidy)
If checked use Tidy to parse HTML response into XHTML."Use Tidy" should be checked on for HTML response. Such response is converted to valid XHTML (XML compatible HTML) using Tidy "Use Tidy" should be unchecked for both XHTML or XML response (for example RSS)
-
isTidyQuiet
public boolean isTidyQuiet()
Sets the Tidy Quiet flag.
-
setTidyQuiet
public void setTidyQuiet(boolean tidyQuiet)
Sets the Tidy Quiet flag.
-
isTidyReportErrors
public boolean isTidyReportErrors()
If a Tidy error occurs, then set the Assertion accordingly.
-
setTidyReportErrors
public void setTidyReportErrors(boolean tidyReportErrors)
If a Tidy error occurs, then set the Assertion accordingly.
-
isTidyShowWarnings
public boolean isTidyShowWarnings()
Sets the Tidy showWarnings option.
-
setTidyShowWarnings
public void setTidyShowWarnings(boolean tidyShowWarnings)
Sets the Tidy showWarnings option.
-
-