C# Class Objectivity.Test.Automation.Common.Helpers.WaitHelper

Contains wait methods with timeouts
显示文件 Open project: ObjectivityBSS/Test.Automation Class Usage Examples

Public Methods

Method Description
Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval ) : bool

Wait for a condition with given timeout and timeInterval.

Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval, string message ) : void

Wait for a condition with given timeout and timeInterval.

Wait ( Func condition, System.TimeSpan timeout, string message ) : void

Wait for a condition with given timeout.

Method Details

Wait() public static method

Wait for a condition with given timeout and timeInterval.
public static Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval ) : bool
condition Func The condition to be met.
timeout System.TimeSpan The timeout value [seconds] indicating how long to wait for the condition.
sleepInterval System.TimeSpan The value [seconds] indicating how often to check for the condition to be true.
return bool

Wait() public static method

Wait for a condition with given timeout and timeInterval.
Timeout exception when condition is not met
public static Wait ( Func condition, System.TimeSpan timeout, System.TimeSpan sleepInterval, string message ) : void
condition Func The condition to be met.
timeout System.TimeSpan The timeout value [seconds] indicating how long to wait for the condition.
sleepInterval System.TimeSpan The value [seconds] indicating how often to check for the condition to be true.
message string The exception message
return void

Wait() public static method

Wait for a condition with given timeout.
Timeout exception when condition is not met
public static Wait ( Func condition, System.TimeSpan timeout, string message ) : void
condition Func The condition to be met.
timeout System.TimeSpan The timeout value [seconds] indicating how long to wait for the condition.
message string The exception message
return void