Examples of HTMLAssertion


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

Examples of org.apache.jmeter.assertions.HTMLAssertion

   *
   * @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

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

Examples of org.apache.jmeter.assertions.HTMLAssertion

   * 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
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.