Project Explorer - Common Tasks

Applies to TestComplete 15.62, last modified on March 19, 2024

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

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

Creating new projects

When there is no open project suite, right-click anywhere within the Project Explorer panel and select New Project from the Project Explorer context menu.

Adding projects to a project suite

To add a new project:

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

  2. Select Add > New Item from the ensuing context menu.

To add an existing project:

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

  2. Select Add > Existing Item from the ensuing context menu.

Adding project items to a project

To add a new project item:

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

  2. Select Add > New Item from the context menu.

To add a new keyword test or script unit, you can also click next to the appropriate item in the Project Explorer.

To add an existing project item:

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

  2. Right-click the node and select Add > Existing Item from the context menu.

Creating project copies
  1. Right-click the project in the Project Explorer panel.

  2. Select Clone Project from the 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
  • Right-click the project suite, project, item, or log in the Project Explorer and then click Rename.

– or –

  • Select the project suite, project, item, or log in the Project Explorer and then press F2.

When you rename a project or a project suite in the Project Explorer panel, TestComplete renames only the corresponding files (.mds and .pjs), but keeps the names of the folders that store these files. This allows keeping references between project elements valid. This also allows keeping the version history of project elements bound to a source control system. Therefore, we recommend that you assign proper names to your projects and project suites initially when you create them, so you will not have to rename them.

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 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
  • 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

Click Run Project Suite on the Project Explorer toolbar.

Running projects

To run the current project, click Run Project on the Project Explorer toolbar.

To run any project that belongs to the current project suite:

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

  • Select Run Project_Name from the context menu.

Adding keyword test operations for running project items
  1. Open the keyword test from which you want to run your project item.

  2. Drag the project item (for example, script or a low-level procedure) from the Project Explorer to the desired location in the keyword test.

Managing the list of tests to run

Do any of the following:

  • Click Organize Tests on the Project Explorer toolbar.

– or –

  • Right-click the project and then select Edit > Test Items from the context menu.

Validating script syntax

To check whether there are syntax errors in all script units of the current project:

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

  2. Select Check Syntax from the ensuing context menu.

To check whether there are syntax errors in a script unit:

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

  • Select Check Syntax from the 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

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

Exporting logs
  1. Right-click the log item in the Project Explorer panel.

  2. Select Export to from the ensuing context menu.

  3. In the resulting Choose Storage Type and Location dialog, specify the 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:

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

– or –

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

To open the Project Editor:

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

– or –

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

To view or edit a project item:

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

– or –

  • 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.

Viewing 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 items in the Project Explorer

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