Examples of DurationAssertion


Examples of org.apache.jmeter.assertions.DurationAssertion

    public String getDurationAttributesTitle() {
        return JMeterUtils.getResString("duration_assertion_duration_test"); // $NON-NLS-1$
    }

    public TestElement createTestElement() {
        DurationAssertion el = new DurationAssertion();
        modifyTestElement(el);
        return el;
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

     * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
     */
    public void modifyTestElement(TestElement el) {
        configureTestElement(el);
        if (el instanceof DurationAssertion) {
            DurationAssertion assertion = (DurationAssertion) el;
            assertion.setProperty(DurationAssertion.DURATION_KEY,duration.getText());
            saveScopeSettings(assertion);
        }
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

    @Override
    public void configure(TestElement el) {
        super.configure(el);
        if (el instanceof DurationAssertion){
            DurationAssertion da = (DurationAssertion) el;
            duration.setText(da.getPropertyAsString(DurationAssertion.DURATION_KEY));
            showScopeSettings(da);
        }
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

  }

  public TestElement createTestElement()
  {
    //ResponseAssertion el = new ResponseAssertion();
    DurationAssertion el = new DurationAssertion();
    configureTestElement(el);
    String durationString = duration.getText();
    long assertionDuration = 0;
    try {
      assertionDuration = Long.parseLong(durationString);
    }
    catch (NumberFormatException e) {
      assertionDuration = Long.MAX_VALUE;
    }
    el.setAllowedDuration(assertionDuration);
    return el;
  }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

   * !ToDo (Method description)
   ***************************************/
  public void configure(TestElement el)
  {
    super.configure(el);
    DurationAssertion assertion = (DurationAssertion)el;
    duration.setText(String.valueOf(assertion.getAllowedDuration()));
  }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

        return JMeterUtils.getResString("duration_assertion_duration_test");
    }

    public TestElement createTestElement()
    {
        DurationAssertion el = new DurationAssertion();
        modifyTestElement(el);
        return el;
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

    }

    public void configure(TestElement el)
    {
        super.configure(el);
        DurationAssertion assertion = (DurationAssertion) el;
        duration.setText(String.valueOf(assertion.getAllowedDuration()));
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

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

    @Override
    public TestElement createTestElement() {
        DurationAssertion el = new DurationAssertion();
        modifyTestElement(el);
        return el;
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

     */
    @Override
    public void modifyTestElement(TestElement el) {
        configureTestElement(el);
        if (el instanceof DurationAssertion) {
            DurationAssertion assertion = (DurationAssertion) el;
            assertion.setProperty(DurationAssertion.DURATION_KEY,duration.getText());
            saveScopeSettings(assertion);
        }
    }
View Full Code Here

Examples of org.apache.jmeter.assertions.DurationAssertion

    @Override
    public void configure(TestElement el) {
        super.configure(el);
        if (el instanceof DurationAssertion){
            DurationAssertion da = (DurationAssertion) el;
            duration.setText(da.getPropertyAsString(DurationAssertion.DURATION_KEY));
            showScopeSettings(da);
        }
    }
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.