Suppressing Controls (Open Agent)

This functionality is supported only if you are using the Open Agent.

To simplify the object hierarchy and to shorten the length of the lines of code in your test scripts and functions, you can suppress the controls for certain unnecessary classes in the following technologies:
  • Win32.
  • Java AWT/Swing.
  • Java SWT/Eclipse.
  • Windows Presentation Foundation (WPF).

For example, you might want to ignore container classes to streamline your test cases.

To suppress specific controls:

  1. Click Options > Recorder. The Recording Options dialog box opens.
  2. Click the Transparent Classes tab.
  3. Type the name of the class that you want to ignore during recording and playback into the text box.

    If the text box already contains classes, add the new classes to the end of the list. Separate the classes with a comma. For example, to ignore both the AOL Toolbar and the _AOL_Toolbar class, type AOL Toolbar, _AOL_Toolbar into the text box.

    The OPT_TRANSPARENT_CLASSES option is set to true for these classes.

  4. Click OK. The OPT_TRANSPARENT_CLASSES option is set to true for these classes, which means the classes are added to the list of the classes that are ignored during recording and playback.