Project Explorer - Common Tasks

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

This topic describes common tasks you can accomplish with project suites, projects, project items and logs displayed in the Project Explorer panel.

Creating New Project Suites

To create a new project suite:

  • Select New Project Suite from the context menu of the Project Explorer panel when there is no open project suite.
Creating New Projects

To create a new project:

  • Right-click anywhere within the Project Explorer panel and select New Project from the context menu of the Project Explorer panel when there is no open project suite.

Adding Projects to Project Suites

To add a new project, follow the instructions below:

  • Right-click the name of an existing project suite displayed in the Project Explorer.

  • Select Add | New Item from the ensuing context menu.

To add an existing project, follow the steps below:

  • Right-click the name of an existing project suite displayed in the Project Explorer.

  • Select Add | Existing Item from the ensuing context menu.

Adding Project Items to Projects

To add a new project item, follow the instructions below:

  • Right-click the project or project item that can have child items in the Project Explorer.

  • Select Add | New Item from the context menu.

To add an existing project item, follow the steps below:

  • Select the project or project item that can have child items in the Project Explorer.

  • Right-click the node and select Add | Existing Item from the context menu.

Creating Project Copies

To create a copy of a project, follow the steps below:

  • Right-click the desired project in the Project Explorer panel.

  • Select Clone Project from the ensuing context menu.

Reloading Project Item Contents

To reload the project item contents from the item’s file or storage, right-click the project item and then click Reload.

The Reload command is available only if the project item’s content has been modified outside of TestComplete and you have selected No or No to All when asked to reload the modified file.

Renaming Project Suites, Projects, Project Items and Logs

To rename a node in the Project Explorer panel, do any of the following:

  • Right-click the selected node and choose Rename from the context menu.

  • Select the needed node and press F2.

You can rename project suites, projects, project items, child elements of project items and log items. Renaming log items has some specifics, see Managing Log Files for more information.

When you rename a project or a project suite in the Project Explorer panel, TestComplete renames only the corresponding files (.mds and .pjs), but the names of the folders that store these files remain the same. Such behavior is caused by the fact that renaming these folders can break links with other project or project suite elements. One more reason is that such modifications may result in disappearance of the version history for elements bound to a source control system. So, we recommend that you assign sensible names to your projects and project suites when you create them, and thus you will not have to rename them in future.
Deleting Project Items and Logs

To remove unnecessary project items or project logs from the project structure, right-click the needed project item or log and select Remove from the ensuing context menu.

To remove all project suite logs, right-click the Project_Suite_Name Logs folder in the Project Explorer and select Clear Log Files from the context menu.

To remove all project logs, right-click the Project_Name Logs folder in the Project Explorer and select Clear Log Files from the context menu.

Organizing Project Items into Folders

To organize project items into folders, act in the following way:

  • Right-click the project node and choose Add | New Folder from the context menu to create a new custom folder.

  • Drag project items to the created folder.

For more information on creating logical folders for organizing projects and project items, see Organizing Items Into Folders.

Running Project Suites

To run a project suite, follow the steps below:

  • Click Run Project Suite on the Project Explorer panel’s toolbar.

Running Projects

To run the current project, do the following:

  • Click Run Project on the Project Explorer panel’s toolbar.

To run any project that belongs to the current project suite, follow the steps below:

  • Right-click the project in the Project Explorer panel.

  • Select Run Project_Name from the ensuing context menu.

Creating Keyword Test Operations for Running Tests

To create a keyword test operation that will run the desired project item, do the following:

  • Drag the needed project item (for example, script or a low-level procedure) from the Project Explorer to the desired location in a keyword test that is open in the Keyword Test Editor.

Managing the List of Tests to be Run

To manage the list of tests to be run, do any of the following:

  • Click Organize Tests on the Project Explorer panel’s toolbar.

  • Select Edit | Test Items from the project’s context menu.

Checking Script Syntax

To check whether there are syntax errors in all script units of the chosen project, follow the steps below:

  • Right-click the desired project in the Project Explorer panel.

  • Select Check Syntax from the ensuing context menu.

To check whether there are syntax errors in the chosen script unit, follow the steps below:

  • Right-click the desired unit under the Scripts node in the Project Explorer panel.

  • Select Check Syntax from the ensuing context menu.

For more information, see Checking Syntax.

Saving Changes Made to Projects and Project Items

To save the changes you have made to the current project suite or project, right-click it and select Save from the context menu.

To save the selected node to a new location on the disk, right-click the needed node and select Save Current As from the context menu.

Importing Logs

To import an existing test log to the project suite or project log:

  • Right-click the Project_Suite_Name Logs or Project_Name Logs folder and choose Add | Existing Log File from the context menu.

Exporting Logs

To export the test log to an external file, follow the steps below:

  • Right-click the log item in the Project Explorer panel.

  • Select Export to from the ensuing context menu.

  • Use the ensuing Choose Storage Type and Location dialog to specify the desired storage for the exported log.

For more information on exporting log files from TestComplete, see Exporting Test Results.

Viewing and Editing Project Suites, Projects and Project Items

To open the Project Suite Editor, do any of the following:

  • Double-click the project suite node in the Project Explorer.

  • Right-click the project suite node in the Project Explorer and select Edit from the context menu.

To open the Project Editor, do any of the following:

  • Double-click the project node in the Project Explorer.

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

To view or edit a project item, do any of the following:

  • Double-click the project item node in the Project Explorer panel to open the item in the appropriate editor.

  • Right-click the project item node in the Project Explorer panel and select Edit from the context menu.

To view the selected log’s content, right-click the log node and select Open from the context menu.

Showing Project and Project Suite Files in Windows Explorer

To open a folder that contains files corresponding to project or project suite items, right-click the needed item and select Show in Explorer from the context menu.

Expanding or Collapsing Structure Trees

To expand all the tree structures displayed in the Project Explorer panel, right-click any node in the structure tree and select Expand All from the context menu.

To collapse all the tree structures displayed in the Project Explorer panel, right-click any node in the structure tree and select Collapse All from the context menu.

Working With Source Control

To bound either a project suite, or a project, or project items to source control, right-click the target node in the Project Explorer panel and select Source Control | Add Project Suite or Source Control | Add Project from the context menu.

To perform source control manipulations (checking in, checking out, getting the latest version, and so on) over the project’s items, right-click the needed item in the Project Explorer panel and select the required command from the Source Control submenu of the context menu.

For more information, see Integration With Source Control Systems.

See Also

About Project Explorer
Projects in TestComplete
Integration With Source Control Systems

Highlight search results