Class XPathAssertionWrapper

    • Method Detail

      • getGuiClass

        public java.lang.Class<?> getGuiClass()
        Description copied from interface: JMeterGUIWrapper
        Gui Test Class used by Jmeter TestElement.GUI_CLASS @See TestElement
        Specified by:
        getGuiClass in interface JMeterGUIWrapper<org.apache.jmeter.assertions.gui.XPathAssertionGui>
      • getTestClass

        public java.lang.Class<?> getTestClass()
        Description copied from interface: TestElementWrapper
        Test Class used by Jmeter TestElement.TEST_CLASS. @See TestElement.
        Specified by:
        getTestClass in interface TestElementWrapper<org.apache.jmeter.assertions.XPathAssertion>
      • 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.