This chapter describes how to import test data from DTP or an .xml report file into your IDE. In this section:
Introduction
Importing test results enables each developer or tester to review his or her assigned tasks in the GUI and respond to them in the Quality Tasks view. If you cannot choose a filter from the filter configuration drop-down menu, verify that you have appropriate access in DTP (see "Project Creation and Configuration" in the DTP documentation for additional information).
Terminology:
Your tasks: The subset of all of your testing tasks that you are responsible for based on code authorship calculations, which are discussed in Configuring Task Assignment and Code Authorship Settings.
- Recommended tasks: The subset of all of your testing tasks to review and address today based on the settings in the executed Test Configuration’s Goals tab.
Your recommended tasks: The subset of all of your testing tasks that you are responsible forbased on the designated authorship and task assignment settings defined as described in Configuring Task Assignment and Code Authorship Settings. Your recommended tasks also include testing tasks for you to review and address today based on the settings in the executed Test Configuration’s Goals tab.
When results are imported, test results are shown in the GUI as if the test were run in the GUI. After the import, you can drill down into results in the normal manner, double-click task messages to open and edit the related line of source code, use any applicable "Quick Fixes" to correct reported problems, and so forth.
You can import a specific category of tasks, tasks for specific goals, or all tasks. You can only import results for projects that are currently in your workbench. If the tested project files were modified in your workbench since the test was run, the results will not be reported because they might not correspond to your modified version of the project files.
Configuring DTP Filter
The filter must be configured in order to download findings from DTP (see Connecting to DTP).
- Choose Parasoft> Preferences to open the settings page.
- Choose Parasoft> DTP> Import Settings.
- Choose a filter from the drop-down menu and configure any additional import settings. See the DTP documentation for information about filter configuration options.
- Click Apply.
Configuring the Quality Tasks View
Prior to importing data from DTP, you should configure the Quality Tasks preferences so that only the test and analysis results relevant to you are imported. In the preferences panel, choose Parasoft> Preferences> Quality Tasks.
The following importing preferences are available:
- Import only tasks reported for tests ran in the last {n} days: Age in days of data imported from DTP.
- Import out of date tasks for modified resources: Enable this option to import out-of-date tasks from both import options (DTP and XML file).
- Relocate tasks during import: Click New and specify a different location for the tasks on import the original location. This option works with both import options (DTP and XML file).
Importing Results
Choose Parasoft> Import> DTP or Local File or URL....
If you choose DTP, the download will begin immediately.
If you choose Local File or URL..., you will be prompted to browse for the report XML file.To import an XML report that's in a legacy format (that is, one created in a version of the application prior to 2021.2 or one created while legacy report format was enabled in 2021.2 or later), you will need to enable the legacy report format. For more information about enabling legacy report format, see Configuring Report Settings.
- If the Quality Tasks view is not already open, choose Parasoft> Show View> Quality Tasks from the main menu to view the imported results.
If the imported findings are associated with a file that has been modified, a message appears specifying the file(s) that are out of sync. The markers associated with these findings (including the line numbers) may not match the location in the local resource files or may indicate findings that have already been resolved.
Findings associated with resources missing locally are not imported and the displayed message lists the files that are unavailable
Accessing Results through Parasoft DTP
To access Parasoft Report Center reports based on information from tests and other sources:
Choose Parasoft> Explore> Report Center Reports or open the reports as described in your Parasoft Report Center User’s Guide.