Testing Java SWT and Eclipse Applications with the Open Agent

Silk Test Classic provides built-in support using the Basic Workflow for testing applications that use widgets from the Standard Widget Toolkit (SWT) controls. When you configure a Java SWT/RCP application, Silk Test Classic automatically provides support for testing standard Java SWT/RCP controls.

Silk Test Classic supports:
  • Testing Java SWT controls embedded in Java AWT/Swing applications as well as Java AWT/Swing controls embedded in Java SWT applications.
  • Standalone SWT applications that use the EXT or CLASSPATH configuration.
  • Testing Java SWT applications that use the IBM JDK or the Sun JDK.
  • Any Eclipse-based application that uses SWT widgets for rendering. Silk Test Classic supports both Eclipse IDE-based applications and RCP-based applications.

For information about new features, supported platforms, and tested versions, refer to the Release Notes.

Java SWT applications support dynamic object recognition. When you record a test case with the Open Agent, Silk Test Classic creates locator keywords in an INC file to create scripts that use dynamic object recognition and window declarations.

Existing test cases that use dynamic object recognition without locator keywords in an INC file will continue to be supported. You can replay these tests, but you cannot record new tests with dynamic object recognition without locator keywords in an INC file.

Using custom class attributes becomes even more powerful when it is used in combination with dynamic object recognition.

For a complete list of the widgets available for SWT testing, see Supported SWT Widgets for the Open Agent.

For a complete list of the record and replay controls available for Java SWT testing, view the SWT.inc and JavaSWT.inc file. To access the JavaSWT.inc file that is used with the Open Agent, navigate to the <SilkTest directory>\extend\JavaSWT directory. By default, this file is located in C:\Program Files\Silk\SilkTest\extend\JavaSWT\JavaSWT.inc. To access the SWT.inc file, navigate to the <SilkTest directory>\extend\ directory. By default, this file is located in C:\Program Files\Silk\SilkTest\extend\SWT.inc.