Suppressing Controls (Classic Agent)

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

You can suppress the controls for certain classes for .NET, Java SWT, and Windows API-based applications. For example, you might want to ignore container classes to streamline your test cases. Ignoring these unnecessary classes simplifies the object hierarchy and shortens the length of the lines of code in your test scripts and functions. Container classes or ‘frames’ are common in GUI development, but may not be necessary for testing.

The following classes are commonly suppressed during recording and playback:
Technology Domain Class
.NET Group
Java SWT

org.eclipse.swt.widgets.Composite

org.eclipse.swt.widgets.Group

Windows API-based applications Group

To suppress specific controls:

  1. Click Options > Class Map. The Class Map dialog box opens.
  2. In the Custom class field, type the name of the class that you want suppress. The class name depends on the technology and the extension that you are using. For Windows API-based applications, use the Windows API-based class names. For Java SWT applications, use the fully qualified Java class name. For example, to ignore the SWT_Group in a Windows API-based application, type SWT_Group, and to ignore to ignore the Group class in Java SWT applications, type org.eclipse.swt.widgets.Group.
  3. In the Standard class list, select Ignore.
  4. Click Add. The custom class and the standard class display at the top of the dialog box.