public class Settings extends Object
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
ComponentLookupScope |
componentLookupScope()
Returns the scope of component lookups.
|
void |
componentLookupScope(ComponentLookupScope scope)
Updates the scope of component lookups.
|
int |
delayBetweenEvents()
Returns a value representing the millisecond count in between generated events.
|
void |
delayBetweenEvents(int ms)
Updates the value representing the millisecond count in between generated events.
|
int |
dragDelay()
Returns the number of milliseconds to wait between a pressing a mouse button and moving the mouse.
|
void |
dragDelay(int ms)
Updates the number of milliseconds to wait between a pressing a mouse button and moving the mouse.
|
int |
dropDelay()
Returns the number of milliseconds between the final mouse movement and mouse release to ensure drop ends.
|
void |
dropDelay(int ms)
Updates the number of milliseconds between the final mouse movement and mouse release to ensure drop ends.
|
int |
eventPostingDelay()
Returns the number of milliseconds before checking for idle.
|
void |
eventPostingDelay(int ms)
Updates the number of milliseconds before checking for idle.
|
int |
idleTimeout()
Returns the time (in milliseconds) to wait for an idle AWT event queue.
|
void |
idleTimeout(int ms)
Updates the time (in milliseconds) to wait for an idle AWT event queue.
|
int |
timeoutToBeVisible()
Returns the number of milliseconds to wait for a component to be visible.
|
void |
timeoutToBeVisible(int ms)
Updates the number of milliseconds to wait for a component to be visible.
|
int |
timeoutToFindPopup()
Returns the number of milliseconds to wait before failing to find a pop-up menu that should appear.
|
void |
timeoutToFindPopup(int ms)
Updates the number of milliseconds to wait before failing to find a pop-up menu that should appear.
|
int |
timeoutToFindSubMenu()
Returns the number of milliseconds to wait for a sub-menu to appear.
|
void |
timeoutToFindSubMenu(int ms)
Updates the number of milliseconds to wait for a sub-menu to appear.
|
public int delayBetweenEvents()
public void delayBetweenEvents(int ms)
To change the speed of a GUI test, you need to change the values of both delayBetweenEvents
and
eventPostingDelay
.
ms
- the millisecond count in between generated events. It should be between -1 and 60000.eventPostingDelay(int)
public int timeoutToBeVisible()
public void timeoutToBeVisible(int ms)
ms
- the time in milliseconds. It should be between 0 and 60000.public int timeoutToFindPopup()
public void timeoutToFindPopup(int ms)
ms
- the time in milliseconds. It should be between 0 and 60000.public int timeoutToFindSubMenu()
public void timeoutToFindSubMenu(int ms)
ms
- the time in milliseconds. It should be between 0 and 10000.public int dragDelay()
public void dragDelay(int ms)
ms
- the time in milliseconds. For Mac OS X or the X11 Windowing system, the minimum value is 100. For other
platforms the minimum value is 0. The maximum value for all platforms is 60000.public int eventPostingDelay()
public void eventPostingDelay(int ms)
To change the speed of a GUI test, you need to change the values of both delayBetweenEvents
and
eventPostingDelay
.
ms
- the time in milliseconds. It should be between 0 and 1000.delayBetweenEvents(int)
public int dropDelay()
public void dropDelay(int ms)
ms
- the time in milliseconds. For Windows, the minimum value is 200. For other platforms, the minimum value
is 0. The maximum value for all platforms is 60000.public ComponentLookupScope componentLookupScope()
org.fest.swing.fixture
. The default value is ComponentLookupScope.DEFAULT
.public void componentLookupScope(ComponentLookupScope scope)
org.fest.swing.fixture
. The default value is ComponentLookupScope.DEFAULT
.scope
- the new value for the scope.public int idleTimeout()
public void idleTimeout(int ms)
ms
- the new time. The value should be equal to or greater than zero.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.