Package org.apache.jmeter.assertions

Examples of org.apache.jmeter.assertions.HTMLAssertion


  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    HTMLAssertion el = new HTMLAssertion();
    modifyTestElement(el);
    return el;
  }
View Full Code Here


   *
   * @param inElement
   */
  public void configure(TestElement inElement) {
    super.configure(inElement);
    HTMLAssertion lAssertion = (HTMLAssertion) inElement;
    errorThresholdField.setText(String.valueOf(lAssertion.getErrorThreshold()));
    warningThresholdField.setText(String.valueOf(lAssertion.getWarningThreshold()));
    errorsOnly.setSelected(lAssertion.isErrorsOnly());
    docTypeBox.setSelectedItem(lAssertion.getDoctype());
    if (lAssertion.isHTML()) {
      htmlRadioButton.setSelected(true);
    } else if (lAssertion.isXHTML()) {
      xhtmlRadioButton.setSelected(true);
    } else {
      xmlRadioButton.setSelected(true);
    }
    if (lAssertion.isErrorsOnly()) {
      warningThresholdField.setEnabled(false);
      warningThresholdField.setEditable(false);
    }
    filePanel.setFilename(lAssertion.getFilename());
  }
View Full Code Here

  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    HTMLAssertion el = new HTMLAssertion();
    modifyTestElement(el);
    return el;
  }
View Full Code Here

   * Configures the associated test element.
   * @param inElement
   */
  public void configure(TestElement inElement) {
    super.configure(inElement);
    HTMLAssertion lAssertion = (HTMLAssertion) inElement;
    errorThresholdField.setText(String.valueOf(lAssertion.getErrorThreshold()));
    warningThresholdField.setText(String.valueOf(lAssertion.getWarningThreshold()));
    errorsOnly.setSelected(lAssertion.isErrorsOnly());
    docTypeBox.setSelectedItem(lAssertion.getDoctype());
    if (lAssertion.isHTML()) {
      htmlRadioButton.setSelected(true);
    } else if (lAssertion.isXHTML()) {
      xhtmlRadioButton.setSelected(true);
    } else {
      xmlRadioButton.setSelected(true);
    }
    if (lAssertion.isErrorsOnly()) {
      warningThresholdField.setEnabled(false);
      warningThresholdField.setEditable(false);
    }
    filePanel.setFilename(lAssertion.getFilename());
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.assertions.HTMLAssertion

Copyright © 2018 www.massapicom. 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.