Project Explorer

The Project Explorer allows you to navigate, construct and execute the components of your project. The Project Explorer organizes your workspace from two viewpoints:

  • Project Browser: This tab displays your project as a tree view, as it is to be executed.

  • Asset Browser: Source code and test script components are displayed on an object or elementary level.

To change views, select the corresponding tab in the lower section of the Project Explorer window.

Project Browser

The Project Browser displays the following hierarchy of nodes:

  • Projects: the Project Explorer's root node. Each project can contain one or more sub-projects.

  • Results: after execution, this node can be expanded to display the resulting report sub-nodes and files, allowing you to control those files through a CMS system such as Rational ClearCase.

  • Test groups: provide a way to group and organize test or application nodes into one or more test campaigns

  • Test nodes:these contain test scripts and source files:

  • Test Scripts:for Component Testing or System Testing

  • Source files: for code-under-test as well as additional source files

  • Any other test related files

  • Application nodes:represent your application, to which you can apply SCI instrumentation for Memory Profiling, Performance Profiling, Code Coverage and Runtime Tracing.Application nodes can also contain Contract Check scripts for C++.

  • Library nodes:allow you to specify library files that can be used by anytest orapplication node.

  • External Command nodes: these allow you to add shell command lines at any point in the Test Campaign.

After execution of a test or applicationan application node, double-click the node to open all associated available reports.

When you run a Build command in the Project Browser, the product parses and executes each node from the inside-out and from top to bottom. This means that the contents of a parent node are executed in sequence before the actual parent node.

Asset Browser

The Asset Browser displays all the files contained in your project. The product parses the files and displays individual components of your source files and test scripts, such as classes, methods, procedures, functions, units and packages.

Use the Asset Browser to easily navigate through your source files and test scripts.

In Asset Browser, you can select the type of Asset Browser in the Sort Method box at the top of the Project Explorer window. Each view type can be more or less relevant depending on the programming language used:

  • By File: This view displays a classic source file and dependency structure

  • By Object: Primarily for C++, this view type presents objects and methods independently from the file structure

  • By Directory:Displays packages and components

Use the Sort button to activate or disable the alphabetical sort.

Double-click a node in the Asset Browser to open the source file or test script in the text editor at the corresponding line.

To switch Project Explorer views, click the Project Browser or Asset Browser tab.

To hide or show the Project Explorer, right-click an empty area within the toolbar, and then select or clear the Project Window menu item; or from the View menu, select Other Windows and Project Window.

Related Topics

Report Explorer | Discovering the GUI