Package org.apache.jmeter.assertions

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


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

    @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

  }

  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

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

        return JMeterUtils.getResString("duration_assertion_duration_test");
    }

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

    }

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

        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

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

    @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

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

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.