com.atlassian.jira.webtest.framework.core
Enum Timeouts

java.lang.Object
  extended by java.lang.Enum<Timeouts>
      extended by com.atlassian.jira.webtest.framework.core.Timeouts
All Implemented Interfaces:
Serializable, Comparable<Timeouts>

public enum Timeouts
extends Enum<Timeouts>

Enumeration of default timeout types in the framework.

NOTE: This enumeration should NOT be extended with further timeout types, unless it is a matter of common (as in: involving more than one developer) consensus that a new timeout type is necessary. Instead, use customized timeouts, if a particular test context requires timeout adjustments (to thet end, use TimedCondition.by(long)).

Since:
v4.3

Enum Constant Summary
AJAX_ACTION
          An AJAX-like action on the tested page, e.g.
COMPONENT_LOAD
          Load time of an UI-heavy component (e.g.
DIALOG_LOAD
          Dialog load time.
EVALUATION_INTERVAL
          Interval between consecutive attempts to evaluate state of a particular test component, used e.g.
PAGE_LOAD
          Page load of an average JIRA page.
SLOW_PAGE_LOAD
          Page load of a slow JIRA page, e.g.
UI_ACTION
          Use for any actions executed by the test within the page UI, e.g.
 
Method Summary
static Timeouts valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Timeouts[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EVALUATION_INTERVAL

public static final Timeouts EVALUATION_INTERVAL
Interval between consecutive attempts to evaluate state of a particular test component, used e.g. by timed conditions.

See Also:
TimedCondition, PollingQuery

UI_ACTION

public static final Timeouts UI_ACTION
Use for any actions executed by the test within the page UI, e.g. typing, clicking, moving mouse etc.


PAGE_LOAD

public static final Timeouts PAGE_LOAD
Page load of an average JIRA page.


SLOW_PAGE_LOAD

public static final Timeouts SLOW_PAGE_LOAD
Page load of a slow JIRA page, e.g. Dashboards, Restore Data, Reindex etc.


DIALOG_LOAD

public static final Timeouts DIALOG_LOAD
Dialog load time.


COMPONENT_LOAD

public static final Timeouts COMPONENT_LOAD
Load time of an UI-heavy component (e.g. Frother Control)


AJAX_ACTION

public static final Timeouts AJAX_ACTION
An AJAX-like action on the tested page, e.g. an asynchronous request, a dialog submit (without redirection) etc.

Method Detail

values

public static Timeouts[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Timeouts c : Timeouts.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Timeouts valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2002-2013 Atlassian. All Rights Reserved.