Package org.apache.jmeter.testelement.property

Examples of org.apache.jmeter.testelement.property.LongProperty


    /**
     * set the expiry time for the cookie
     * @param expires - expiry time in seconds since the Java epoch
     */
    public synchronized void setExpires(long expires) {
        setProperty(new LongProperty(EXPIRES, expires));
    }
View Full Code Here


     *
     * @param val
     *            the new lowest possible parameter value
     */
    public void setLowerBound(long val) {
        setProperty(new LongProperty(LOWER_BOUND, val));
    }
View Full Code Here

     *
     * @param val
     *            the new highest possible parameter value
     */
    public void setUpperBound(long val) {
        setProperty(new LongProperty(UPPER_BOUND, val));
    }
View Full Code Here

     *
     * @param incr
     *            the new increment for the parameter value
     */
    public void setIncrement(long incr) {
        setProperty(new LongProperty(INCREMENT, incr));
    }
View Full Code Here

    public RunTime() {
    }

    public void setRuntime(long seconds) {
        setProperty(new LongProperty(SECONDS, seconds));
    }
View Full Code Here

        throw new IllegalArgumentException(
            JMeterUtils.getResString("argument_must_not_be_negative"));
      }
      if (duration == Long.MAX_VALUE)
      {
         setProperty(new LongProperty(DURATION_KEY,0));
      }
      else
      {
         setProperty(new LongProperty(DURATION_KEY,duration));
      }
   }
View Full Code Here

  public void setErrorThreshold(long inErrorThreshold) {
    if (inErrorThreshold < 0L) {
      throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative"));
    }
    if (inErrorThreshold == Long.MAX_VALUE) {
      setProperty(new LongProperty(ERROR_THRESHOLD_KEY, 0));
    } else {
      setProperty(new LongProperty(ERROR_THRESHOLD_KEY, inErrorThreshold));
    }
  }
View Full Code Here

  public void setWarningThreshold(long inWarningThreshold) {
    if (inWarningThreshold < 0L) {
      throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative"));
    }
    if (inWarningThreshold == Long.MAX_VALUE) {
      setProperty(new LongProperty(WARNING_THRESHOLD_KEY, 0));
    } else {
      setProperty(new LongProperty(WARNING_THRESHOLD_KEY, inWarningThreshold));
    }
  }
View Full Code Here

  /**
   * Enables html validation mode
   */
  public void setHTML() {
    setProperty(new LongProperty(FORMAT_KEY, 0));
  }
View Full Code Here

  /**
   * Enables xhtml validation mode
   */
  public void setXHTML() {
    setProperty(new LongProperty(FORMAT_KEY, 1));
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.testelement.property.LongProperty

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.