Configuring the TestComplete Project

Applies to TestComplete 15.70, last modified on December 17, 2024
Flash Player has reached end of life on December 31, 2020. Support for Flash and Flex applications is now deprecated in TestComplete and will be removed in a future release.

The information in this topic applies to web tests that locate web objects by using internal identification properties provided by TestComplete and run in local environments.

Before you start testing Flash and Flex applications, you need to configure your TestComplete project to use the Tree or Hybrid web object model. Below are detailed instructions on how you can do that:

  1. Open the project’s Properties page by doing any of the following:

    • Double-click the project in the Project Explorer panel. In the ensuing project editor, switch to the Properties page.

      – or –

    • Right-click your project in the Project Explorer and select Edit > Properties from the context menu.

      – or –

    • Select your project in the Project Explorer and then select Tools > Current Project Properties from the main menu of TestComplete.

  2. In the list on the left of the Properties page, select Open Applications > Web Testing.

  3. In the Tree model list, select Tree (default value).

    Project Properties - Web Testing Options
  4. Select File > Save All from the main menu of TestComplete to apply the changes.

Tips:

  • Instead of configuring the above-mentioned settings in each project, you can set up the Default Project Properties in the same manner as described above. In this case, a new TestComplete project you will create will have these properties set by default.

  • The Tree model can be set from tests via the Options.Web.TreeModel property. For example, you can activate the needed model at the beginning of your test. The following example demonstrates how you can activate the Tree model:

    JavaScript, JScript

    Options.Web.TreeModel = "Tree";

    Python

    Options.Web.TreeModel = "Tree";

    VBScript

    Options.Web.TreeModel = "Tree"

    DelphiScript

    Options.Web.TreeModel := 'Tree';

    C++Script, C#Script

    Options["Web"]["TreeModel"] = "Tree";

See Also

Preparing Flash and Flex Applications for Testing via the MSAA Engine

Highlight search results