com.atlassian.jira.webtest.framework.core.condition
Interface TimedCondition

All Superinterfaces:
PollingQuery
All Known Subinterfaces:
Conditions.CombinableCondition
All Known Implementing Classes:
AbstractLocatorBasedTimedCondition, AbstractSeleniumTimedCondition, AbstractTimedCondition, AttributesMatchCondition, ContainsTextCondition, ContainsValueCondition, ExecuteScriptCondition, GadgetTimedCondition, HasClassCondition, IsInWindowCondition, IsPresentCondition, IsVisibleCondition, ValueChangedCondition

@NotThreadSafe
public interface TimedCondition
extends PollingQuery

Boolean condition with timeout.

Implementations of this interface are not supposed to be thread-safe.

Since:
v4.2

Method Summary
 boolean by(long timeout)
          Evaluate the condition by given timeout.
 boolean byDefaultTimeout()
          Evaluate the condition by a timeout deemed default by the condition in the given test context.
 boolean now()
          Evaluate the condition immediately.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PollingQuery
defaultTimeout, interval
 

Method Detail

by

boolean by(long timeout)
Evaluate the condition by given timeout. That is, return true as soon as the condition is true, otherwise return false when the given timeout expires.

Parameters:
timeout - timeout in milliseconds (must be greater than 0)
Returns:
true, if the underlying condition evaluates to true before the timeout expires

byDefaultTimeout

boolean byDefaultTimeout()
Evaluate the condition by a timeout deemed default by the condition in the given test context.

Returns:
true, if the underlying condition evaluates to true before the default timeout expires

now

boolean now()
Evaluate the condition immediately.

Returns:
current evaluation of the underlying condition.


Copyright © 2002-2013 Atlassian. All Rights Reserved.