This section explains how to use Test Case Explorer for creating and reviewing test cases and test suits.

Introduction

Test Case Explorer helps you manage a project’s test suites, test cases, and related data sources. In particular, it can be used for:

  • Searching for test cases available for a project.
  • Reviewing test cases (including detailed test statistics).
  • Adding test cases.
  • Adding data sources which can be used to parameterize test cases.

Test Case Explorer is opened by default. Also, it can be manually opened by choosing Parasoft> Show View> Test Case Explorer from the IDE menu.

Reviewing Results

By default, the Test Case Explorer presents results in a compact view, where information is organized as a tree with the following structure:

  • Project
    • Data Sources
      • Data Source 1
      • Data Source 2
      • Data Source n
  • Folder 1
    • Test Suite 1
      • Test Case 1
      • Test Case 2
      • Test Case n
    • Test Suite 2
      • Test Case 1
      • Test Case 2
      • Test Case n

You can configure Test Case Explorer to display additional information in a table by disabling the Compact view option in the drop-down menu of Test Case Explorer and specifying the columns you want to display in Statistics> Columns> [column name]

Updating/Refreshing

The content in Test Case Explorer is automatically updated when actions are performed from within Test Case Explorer, such as adding or deleting test cases, tests suites, or data sources, disabling or enabling test cases or test suites. Test Case Explorer is not updated when external actions are performed, for example, when you modify the source file. You can manually update the content displayed in Test Case Explorer to reflect the most recent changes (including external actions) by using the Refresh option:

  • To refresh all projects, choose the Refresh button in the Test Case Explorer toolbar.
  • To refresh a selected project, right-click its node in Test Case Explorer and choose Refresh from the shortcut menu.

Filtering

You can filter Test Case Explorer to hide projects with no tests, passed tests,  executed tests, or tests from the most recent test session by clicking the Filter button in Test Case Explorer toolbar, then specifying filter criteria.



Searching

To search the Test Case Explorer, click the Find button in the Test Case Explorer toolbar.




In the Find field that opens, provide the name of the test case you want to find.

You can use the toolbar buttons next search filed to move to the previous/next match.  In addition, the toolbar buttons allow you to enable the following options:

  • Wrap search
  • Case-sensitive search
  • Search only within selected nodes

Expanding/Collapsing Explorer Branches

To expand or collapse Test Case Explorer branches:

  • Right-click the node you want to expand or collapse, then choose the appropriate shortcut menu command:
    • Expand all: Expands all sub nodes.
    • Expand Children: Expands children (but not grandchildren).
    • Collapse Children: Collapses all children.









To collapse all subnodes, click the Collapse All toolbar button.



Test Case Explorer Toolbar and Menu

The following buttons are available on Test Case Explorer's toolbar:

  • Refresh: Refreshes the contents of the Test Case Explorer.
  • Collapse All: Collapses all of the nodes within the Test Case Explorer.
  • Find: Allows you to search for any item (i.e. Test Suites, tests, chained tools, etc.) within the Test Case Explorer. 
  • Filter: Allows you to configure filters that hide specified projects or tests within the Test Case Explorer.

You can choose the following options from the Test Case Explorer's drop-down menu:

  • Show: Allows you to enable or disable showing test case details (Show> Details) and data sources details (Show> Data source tests). See Reviewing Test Execution Results for more information.
  • Statistics: Allows you to enable or disable the compact view and specify the columns you want to display when the compact view is disabled. In addition, you can reset test results by clearing the data displayed in Test Case Explorer.

Activating Grayed Out Projects

Test Case Explorer initially presents top-level project nodes with their execution statistics (if available). This initial state is represented by a grayed out project icon.






To activate a project and access the test cases it includes, right-click the project’s node in Test Case Explorer and choose Refresh from the shortcut menu. All test cases found in the selected project will be displayed.

Note: The Refresh option available in the Test Case Explorer toolbar refreshes all projects that are already activated.

  • No labels