Java Developer Tools

API Reference



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.locator Provides 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.swt.util Provides utility classes to the WindowTester runtime.
com.windowtester.runtime.util Provides utilities to perform common core tasks such as string comparison and screen capture.

 

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

WindowTester test cases are subclasses of UITestCaseCommon 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 UITestCaseCommon.getUI() 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. Common uses for Conditions include:

  • waiting - tests can be paused until a condition is satisfied using the IUIContext.wait(ICondition) method; for example, one might want to pause test execution until a file is created in the file system, a job is complete, a widget is updated and so on.
  • asserting - properties of the system can be asserted using the IUIContext.assertThat(ICondition) method; for example, one might want to assert that a particular widget is visible, has focus, has text that matches an expected String and so on.
Conditions can also be registered with the runtime's IConditionMonitor and used to trigger IHandler instances. Shell Conditions (implemented as IShellCondition instances) 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. Finally conditions can also be used to ensure that properties are true using the IUIContext.ensureThat(IConditionHandler) method.

Related Documentation

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



Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.