public class Settings extends Object
| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
ComponentLookupScope |
componentLookupScope() |
void |
componentLookupScope(ComponentLookupScope scope)
Updates the scope of AWT or Swing
Component lookups. |
int |
delayBetweenEvents() |
void |
delayBetweenEvents(int ms)
Updates the value representing the millisecond count in between generated events.
|
int |
dragDelay() |
void |
dragDelay(int ms)
Updates the number of milliseconds to wait between a pressing a mouse button and moving the mouse.
|
int |
dropDelay() |
void |
dropDelay(int ms)
Updates the number of milliseconds between the final mouse movement and mouse release to ensure drop ends.
|
int |
eventPostingDelay() |
void |
eventPostingDelay(int ms)
Updates the number of milliseconds before checking for idle.
|
int |
idleTimeout() |
void |
idleTimeout(int ms)
Updates the time (in milliseconds) to wait for an idle AWT event queue.
|
int |
timeoutToBeVisible() |
void |
timeoutToBeVisible(int ms)
Updates the number of milliseconds to wait for an AWT or Swing
Component to be visible. |
int |
timeoutToFindPopup() |
void |
timeoutToFindPopup(int ms)
Updates the number of milliseconds to wait before failing to find a pop-up menu that should appear.
|
int |
timeoutToFindSubMenu() |
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()
Component to be visible. The default value
is 30,000 milliseconds.public void timeoutToBeVisible(int ms)
Component to be visible. The default value
is 30,000 milliseconds.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)
Updates the number of milliseconds before checking for idle. This allows the system a little time to put a native event onto the AWT event queue. The default value is 100 milliseconds.
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.@Nonnull public ComponentLookupScope componentLookupScope()
Component lookups. This setting only affects the classes in the package
org.assertj.swing.fixture. The default value is ComponentLookupScope.DEFAULT.public void componentLookupScope(@Nonnull ComponentLookupScope scope)
Component lookups. This setting only affects the classes in the package
org.assertj.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 © 2014 AssertJ. All rights reserved.