In this section:
The Test Explorer provides detailed information about unit and functional tests, such as test traces, history of runs, and coverage information. Click on a unit or functional test widget from the Report Center dashboard to access the Test Explorer (see Widgets). You can also access the test explorer from the Coverage Explorer (see Coverage Explorer). The test explorer is divided into four panels:
- Search panel; see Using the Search Panel.
- Search results table; see Viewing Search Results.
- Source panel; Viewing Source Code.
- Actions panel; Resolving Test Failures.
Using the Search Panel
The Test Explorer opens using the settings of the unit or functional test widget you clicked as search parameters, but you can easily change the search to learn about the state of coverage in your application.
- Click Change Search to open the Search Options overlay.
- Choose a filter from the Filter drop-down menu (see Creating and Managing Filters, to learn more about filters in Report Center).
- Choose a build ID from the Build drop-down menu (see DTP Concepts to learn more about build IDs in DTP).
Choose your search parameters. You can also click the File Name option and enter a file name in the search bar to find a specific file.
Some states disable the limit on test cases returned
The Pass → Fail and Fail → Pass state parameters disable the limit on number of test cases returned in the search results area.
- Click Search.
Viewing Search Results
The search results panel shows tests based on the parameters entered in the search overlay.
You can perform the following actions:
- Click on a row to view additional information in the actions panel; see Resolving Test Failures.
- Click on a column header to sort results
- Click and drag a column header to the area labeled Drag a column header and drop it here to group by that column to create grouped views of the search results. By default, the table is grouped by test file name.
Viewing Tests Executed in Different Environments
If your tests execute on different machines, you can add the Test Environment tab to the search results table so that you can view the results for each environment. See Navigating Explorer Views for additional information on filtering the results table.
Tests in the build that have unique configuration identifiers (such as session tags) will appear under in the table with the test environment tag that was applied during test execution.
Refer to DTP Concepts for additional information about session tags, build IDs, and other metadata that enable DTP to organize and aggregate data.
Resolving Test Failures
The actions panel provides information about the tested file and its tests to help you understand defects in your software. The panel also provides an interface for assigning test metadata to help you resolve test failures. Click on a tab in the actions panel to view information or assign tests with metadata to place it into a remediation workflow.
Click on the Prioritization tab to access several actions to help you remediate unit and functional test failures.
You can perform the following actions:
- Add comments
- Assign a user by entering a user name in the Assigned To field.
- Set the priority by choosing an option from the Priority drop-down menu.
- Define an action for the assignee by choosing an option from the Action drop-down menu.
- Actions are strings of metadata that you can use to define how you choose to remediate test failures. DTP ships with set of predefined actions: None, Fix, Reassign, Review, Suppress, and Other. You can edit or remove the predefined action types (except for the None type) using the API. For details on configuring actions, choose API Documentation from the Help drop-down menu in the Report Center navigation bar.
- Associate a business risk or impact to the test by choosing an option in the Risk/Impact drop-down menu.
- Assign a due data by entering a date in the Due Date field or by using the date picker
- Assign a reference number to the test be entering a value in the Reference # field
Click Apply to save the test metadata.
Permissions Must be Configured to Update Test Metadata and View Sources
Users must have permissions to set unit and functional test metadata (prioritize), as well as view sources. Permission can be granted for all tests or limited to tests owned by the user. The following table describes a project membership scenario and how permissions may be assigned (see Permissions for additional information):
|User Type||Additional Permission||Access Granted|
|Non-member 1||No access|
|Non-member 3||project, prioritizeOwner|
|Non-member 4||project, viewSources|
Creating an Issue in Third-party Systems
You can connect a project in DTP to a project in one of the following requirements/issue tracking systems:
- CodeBeamer ALM - see Integrating with CodeBeamer ALM
- Jira - see Integrating with Jira
- Polarion ALM - see Integrating with Polarion ALM
- VersionOne - see Integrating with VersionOne
The integration enables you to create issues in the connected ALM system from tests in the Prioritization panel.
- Select a test in the search results area.
- Click the Prioritization tab and click the button for creating an issue. The label of the button depends on the connected system:
- Click Create issue when connected to Jira
- Click Create issue when connected to VersionOne
- Click Create Work Item when connected to Polarion ALM or codeBeamer ALM
Configure the following fields:
The name of the ALM project in which the new issue will be created appears in the Project field. The association between a DTP project and the external ALM project is defined by your DTP administrator. See the following sections for details:
Choose the type of item to create from the drop-down menu.
- For Jira and codeBeamer ALM, choose Bug or Task.
- For VersionOne, choose Defect or Issue.
- For Polarion ALM, choose Issue or Task.
Title/Summary By default, the test name is prepended with "Review Test" and used as the issue title (VersionOne) or summary (codeBeamer ALM, Jira, Polarion ALM), but you can make any necessary changes. Description This field populates the description field in the third-party system. It will include a link back to DTP based on the Display URL field setting in the External Application configuration page.
- Click Create.
An issue will be created in your external system that links back to the test in DTP. Additionally, a link to the issue will appear in the Prioritization tab, create a bi-directional path between DTP and your external system.
Modification History Tab
Click on the Modification History tab to show when test metadata was updated.
If you want to filter for comments, you can enable the Only show comments option.
Test History Tab
Click on the Test History tab to show when tests were ran and the status of each run. You can click on a column header to sort the contents of the table.
When viewing unit test data, the Traces tab shows stack traces for failed and incomplete tests. If you are viewing functional or manual tests, the tab shows error messages for test failures.
Unit Test View
Click on an entry under an error message to show the test in the source code in the source panel; see Viewing Source Code.
Functional and Manual Test View
The message associated with the selected failure displays in the tab. The specific test failure is highlighted in the source panel.
Click the Show Traffic button to view the data requested during the test and the application’s response.
Viewing Test Coverage Information
The coverage panel shows a hierarchical view of the files associated with the tests. Each node in the hierarchy shows how much of each file or directory is covered in brackets. Coverage information is not currently available for functional tests.
Click on a disclosure triangle to navigate the tree. When an item is loaded that does not have any siblings, its children are automatically loaded and displayed. This behavior will cascade until the tree reaches a branch with multiple items at the same level (a decision point) or until the branch cannot be expanded any further. The coverage tree panel will not automatically expand nodes again if it has been previously expanded and collapsed unless the search criteria has changed or the page has been reloaded.
- Click on file nodes to view it in the source code panel; see Viewing Source Code.
Click the Details tab to view information about the test.
You can also add some details shown in the tab to the search results table. See Navigating Explorer Views for additional information.
Viewing Source Code
If DTP is integrated with your source control system, then you can view the tested source code in an explorer view. If integration with your source control system has not been configured, you can still view sources tested by Parasoft code analysis and test execution tools (C/C++test, dotTEST, Jtest) by setting the
report.dtp.publish.src setting to
min when configuring the tool. This instructs the tool to transfer client source code to DTP when generating the report. See the documentation for your tools for additional information.
Users must also have permissions to view source code. See the note above about permissions for additional information.
When viewing functional or manual tests, the source code panel shows a hierarchical view of the test suite data collected. No additional permissions are required to view functional test data. See Viewing Functional and Manual Test Sources for information on viewing functional test data.
Viewing Unit Test Source Code
Click on a file link in the Traces or Coverage tab to load the contents of a source file into the sources panel. This enables you to view test and coverage information in the context of the code. Displayed sources are marked with color coded flags for at-a-glance coverage information after clicking links in the Coverage tab of the actions panel. Lines with green flags are covered. Lines with red flags are uncovered.
Clicking on links in the Traces tab also loads sources into the sources panel. Lines of code where the fail occurred are flagged so you can easily find the test in the trace stack.
When you make a selection in the tests table, the file name and the component that opened the file appears in the code panel.
Viewing Functional and Manual Test Sources
Click on a test in the search results panel to view functional tests performed with SOAtest 9.x or later in the Test Explorer. SOAtest 9.9.2 or later is required to view test authorship and parameterized tests. Data Collector parses the XML report file generated by SOAtest and displays the .tst file data, so the .tst file does not need to be published to DTP or stored in source control.
The selected test suite is highlighted in the panel. You can click on the disclosure triangles to navigate the test data. Each node shows how much of the test suite was executed successfully. Failed test suites are displayed in red.