Examples of XPathAssertion


Examples of org.apache.jmeter.assertions.XPathAssertion

        return JMeterUtils.getResString("xpath_assertion_test"); //$NON-NLS-1$
    }

    public void configure(TestElement el) {
        super.configure(el);
        XPathAssertion assertion = (XPathAssertion) el;
        xpath.setXPath(assertion.getXPathString());
        xpath.setNegated(assertion.isNegated());

        xml.configure(assertion);
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

     * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
     */
    public void modifyTestElement(TestElement el) {
        super.configureTestElement(el);
        if (el instanceof XPathAssertion) {
            XPathAssertion assertion = (XPathAssertion) el;
            assertion.setNegated(xpath.isNegated());
            assertion.setXPathString(xpath.getXPath());
            xml.modifyTestElement(assertion);
        }
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

    /**
     * Create test element
     */
    public TestElement createTestElement()
    {
      XPathAssertion el = new XPathAssertion();
        modifyTestElement(el);
        return el;
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

  }  
 
  public void configure(TestElement el)
  {
      super.configure(el);
      XPathAssertion assertion = (XPathAssertion) el;
      xpath.setXPath(assertion.getXPathString());
      xpath.setNegated(assertion.isNegated());
     
      xml.setWhitespace(assertion.isWhitespace());
      xml.setValidate(assertion.isValidating());
      xml.setTolerant(assertion.isTolerant());
      xml.setNamespace(assertion.isNamespace());
     
  }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

   */
  public void modifyTestElement(TestElement el)
  {
      super.configureTestElement(el);
      if (el instanceof XPathAssertion ) {
        XPathAssertion assertion = (XPathAssertion) el;
        assertion.setValidating(xml.isValidate());
        assertion.setWhitespace(xml.isWhitespace());
        assertion.setTolerant(xml.isTolerant());
        assertion.setNamespace(xml.isNamespace());
        assertion.setNegated(xpath.isNegated());
        assertion.setXPathString(xpath.getXPath());
      }
  }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

  /**
   * Create test element
   */
  public TestElement createTestElement() {
    XPathAssertion el = new XPathAssertion();
    modifyTestElement(el);
    return el;
  }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

    return JMeterUtils.getResString("xpath_assertion_test"); //$NON-NLS-1$
  }

  public void configure(TestElement el) {
    super.configure(el);
    XPathAssertion assertion = (XPathAssertion) el;
    xpath.setXPath(assertion.getXPathString());
    xpath.setNegated(assertion.isNegated());

    xml.setWhitespace(assertion.isWhitespace());
    xml.setValidate(assertion.isValidating());
    xml.setTolerant(assertion.isTolerant());
    xml.setNamespace(assertion.isNamespace());

  }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

   * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
   */
  public void modifyTestElement(TestElement el) {
    super.configureTestElement(el);
    if (el instanceof XPathAssertion) {
      XPathAssertion assertion = (XPathAssertion) el;
      assertion.setValidating(xml.isValidate());
      assertion.setWhitespace(xml.isWhitespace());
      assertion.setTolerant(xml.isTolerant());
      assertion.setNamespace(xml.isNamespace());
      assertion.setNegated(xpath.isNegated());
      assertion.setXPathString(xpath.getXPath());
    }
  }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

  /**
   * Create test element
   */
  public TestElement createTestElement() {
    XPathAssertion el = new XPathAssertion();
    modifyTestElement(el);
    return el;
  }
View Full Code Here

Examples of org.apache.jmeter.assertions.XPathAssertion

    return JMeterUtils.getResString("xpath_assertion_test");
  }

  public void configure(TestElement el) {
    super.configure(el);
    XPathAssertion assertion = (XPathAssertion) el;
    xpath.setXPath(assertion.getXPathString());
    xpath.setNegated(assertion.isNegated());

    xml.setWhitespace(assertion.isWhitespace());
    xml.setValidate(assertion.isValidating());
    xml.setTolerant(assertion.isTolerant());
    xml.setNamespace(assertion.isNamespace());

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.