Applies to TestComplete 14.20, last modified on September 11, 2019

The Open Applications | WPF group of the default project properties specify the default values for the WPF Options of newly created TestComplete projects. These options affect how TestComplete works with WPF application objects. Note that the WPF options are only available if the WPF Control Support plugin is installed and enabled in File | Install Extensions.

To view or modify the default WPF options:

  • Select Tools | Default Project Properties from the main menu of TestComplete. The Default Project Properties dialog opens.

  • Select Project | Open Applications| WPF from the tree displayed on the left of the dialog.

You can change the following options:

  • Simplified WPF object tree -- Specifies how TestComplete presents the object hierarchy in WPF applications. If this option is enabled, TestComplete omits the content layout containers (such as Panels, Borders, Decorators and others) from the object hierarchy, which reduces the nesting levels of tested objects corresponding to application controls, and improves the test readability. If this setting is disabled, TestComplete reflects the actual hierarchy of objects in the application, including intermediate container objects. For more information, see About Containers in the WPF Object Hierarchy.

  • The following settings let you enable access to template-generated elements of composite WPF controls, such as toolbars, list views, combo boxes and others (see Support for WPF Control Templates):

    • Composite controls -- holds a list of composite WPF controls whose internal elements TestComplete should expose. An example of a composite control is a toolbar object consisting of several controls: buttons, check boxes and so on.

    • ItemsControl objects with composite items -- holds a list of objects that contain composite items whose internal elements TestComplete should expose. These can be, for example, list box or combo box controls with composite items.

      Note: The objects listed in this table must be descendants of the ItemsControl class.

    Both tables contain three columns:

    • Active - Specifies whether the setting is enabled.
    • Class name - Specifies the class name of the control.
    • Name - Specifies the control’s name as it is defined in the tested application’s source code.

    The name or class name should be specified.

    To add a new row to either of these tables, click Add.

    To modify the value in the Class name or Name column, click the desired cell and then type the new value in the ensuing in-place editor. Wildcards (? and *) are not supported.

    To remove a control or class name from a table, select the desired row in the table and then press Remove.

To save the changes you made to the options, press OK. Cancel will close the dialog discarding any changes.

See Also

Project Properties - WPF Options
Default Project Properties - Project Options
Addressing Objects in WPF Applications
Support for WPF Control Templates

Highlight search results