Provides classes and interfaces for writing UI tests using the WindowTester API.

See:
          Description

Packages
com.windowtester.runner Provides test runners for the automated execution of WindowTester tests.
com.windowtester.runtime Provides classes and interfaces for writing UI tests using the WindowTester API.
com.windowtester.runtime.common Provides common base classes for concrete WindowTester runtime implementations.
com.windowtester.runtime.condition Provides support for Conditions to the WindowTester runtime.
com.windowtester.runtime.draw2d.matchers Provides basic draw2d figure matchers, suitable for subclassing.
com.windowtester.runtime.gef Provides classes and interfaces for writing UI tests for applications using the Graphical Editing Framework (GEF) using the WindowTester API.
com.windowtester.runtime.gef.locator Provides interfaces and classes to implement locators that specify Draw2D figures in a figure hierarchy.
com.windowtester.runtime.locator Provides interfaces and classes to implement locators that define widgets in a hierarchy.
com.windowtester.runtime.monitor Provides UI thread monitoring functionality to UI test execution.. 
com.windowtester.runtime.swing Provides classes and interfaces for writing UI tests using the WindowTester API.
com.windowtester.runtime.swing.condition Provides support for  Special Swing related Conditions to the WindowTester runtime.
com.windowtester.runtime.swing.locator Provides support for custom Swing widget locators to the WindowTester runtime. 
com.windowtester.runtime.swt Provides support for running WindowTester UI unit tests as test cases under JUnit.
com.windowtester.runtime.swt.condition Provides support for Conditions to the WindowTester runtime.
com.windowtester.runtime.swt.condition.eclipse Provides support for Eclipse-specific Conditions to the WindowTester runtime.
com.windowtester.runtime.swt.condition.shell Provides specialized shell condition handling support to the WindowTester runtime.
com.windowtester.runtime.swt.experimental.condition.eclipse EXPERIMENTAL: Provides experimental (non-API) Eclipse conditions.
com.windowtester.runtime.swt.experimental.locator EXPERIMENTAL: Provides experimental (non-API) Eclipse locators.
com.windowtester.runtime.swt.finder Provides finder-specific exception types.
com.windowtester.runtime.swt.identifier  Provides interfaces for widget identifier strategies contributed via the com.windowtester.recorder.identifier.IWidgetIdentifierDelegate extension point.
com.windowtester.runtime.swt.legacy.util DEPRECATED: Utility classes and methods for supporting the old SWT WindowTester API.
com.windowtester.runtime.swt.locator Specialized subtypes of IWidgetLocator for SWT.
com.windowtester.runtime.swt.locator.eclipse Provides support for specialized Eclipse SWT widget locators to the WindowTester runtime. 
com.windowtester.runtime.swt.locator.forms Provides support for specialized Forms UI locators to the WindowTester runtime. 
com.windowtester.runtime.swt.locator.jface Provides support for specialized JFace locators to the WindowTester runtime. 
com.windowtester.runtime.util Utility functions such as screen capture.
junit.extensions Provides support for running WindowTester Swing UI unit tests as test cases under JUnit.
junit.extensions.swing Provides support for running WindowTester Swing UI unit tests as test cases under JUnit.

 

Provides classes and interfaces for writing UI tests using the WindowTester API.

WindowTester test cases are subclasses of junit.extensions.UITestCase which is a special JUnit test case, tailored for running User Interface (UI) tests. These test cases interact with the UI using an instance of IUIContext which is retrieved from the UITestCase using it's junit.extensions.UITestCase#getUIContext() method. IUIConext supports common UI actions like entering text, clicking widgets, dragging and dropping components and so on.

UI Tests are made robust using Conditions. Conditions implement the ICondition interface and are commonly used to cause tests to pause until some condition becomes true (for instance once a file is created on the filesystem). Conditions can also be registered with the runtime's IConditionMonitor and used to trigger IHandler instances. Shell Conditions (implemented as IShellConditions) are special conditions used to test conditions on shells. Registering handlers to handle shell conditions is helpful in cases where shell appearances are hard to predict (such as progress monitors). Shell handlers are associated with the runtime through the UI Context's IShellMonitor instance.

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see: