In this section:
Search Parameters
Violations stored in DTP are searchable by several parameters. Use the search area to home in on specific types of violations. You can change the criteria in the search area to find violations throughout your development projects.
Click Change Search to open the search dialog and configure your search criteria. The following search criteria are available:
Filter Build | A filter and build ID are the minimum criteria for searching violations. By default, the latest build is selected when you change the filter, but you can choose a different build from the menu. The build selected functions as a target build when a baseline build is selected. See the following sections for additional information: |
---|---|
Baseline Build State | A baseline build is any historical build used for comparison with another build. Choose a baseline build from the menu to search for violations reported from the baseline build to the build selected with the filter. You can search for new, fixed, or existing violations by choosing a state from the State menu. |
Severity | You can search by one or more severity levels. Severity is determined by the test configuration. You can customize the severity level associated with a rule by creating a rule map. See Configuring Code Analysis Rules for additional information. |
Priority | You can search by one or more assigned priorities. Priorities can be customized through the REST API. |
Author | You can search by one or more code authors. Authorship is determined from the settings in the code analysis tool. |
Assignee | You can search by one or more assignees. |
Action | You can search by one or more assigned actions. Actions can be customized through the REST API. |
Type | You can search for regular violations, suppressed violations, or all violations. |
Filter Resource Groups | This section shows what Resource Groups have been associated with the Filter. See Associating Resource Groups with Filters for more information. |
Resource Groups | You can search by one or more resource groups. For more information about resource groups, see Adding Resource Groups to Projects. |
Include File Pattern Exclude File Pattern | You can specify Ant-style patterns to narrow or broaden the scope of your search. See Using File Patterns in DTP for more information about configuring file patterns. |
Risk/Impact | You can search by one or more risk/impact values. Risk/impact is the extent to which a violation impacts the business. Risk/impact can be customized through the REST API. |
Reference Number | You can constrict your search to a specific reference number. Reference numbers can be added manually or automated through the REST API. |
Category | You can search by one or more static analysis categories. Static analysis rules are organized into categories, but you can define or remap rules and categories by creating a rule map. See Configuring Code Analysis Rules for additional information. |
Module | You can search by one or more specific modules. |
Rule | You can search by one or more code analysis rules enabled in the test configuration. |
Limit | You can set a limit for the number of violations shown in the Violations Explorer. |
Click on a violation in the search results table to view the violation as it exists in the code.
You can configure DTP to display sources from source control or sources sent by connected Parasoft tools during code analysis and test execution. See Configuring Source Code Views for additional information on how sources are displayed in DTP. For searches made with both filter resource groups and resource groups, a resource must be included in at least one of the selected filter resource groups and one of the selected resource groups to be returned. For searches made with filter resource groups and resource groups that also use ad hoc include/exclude file patterns, a resource must be included in at least one of the selected filter resource groups and one of the resource groups, plus it must satisfy the include/exclude file patterns specified to be returned.How Resource Groups and File Patterns Work
Viewing Search Results
The search results panel returns any violations found according to the search parameters.
Click on a violation to view the content of the source file, details about the violation, and enable actions for remediation. When you make a selection in the violations table, the file name and the component that opened the file appear in the code panel.
You can also use the sorting mechanisms and customize the table to refine your view of the violation data. See Navigating Explorer Views for details.
By default, the maximum number of violations shown is 1000. You can change the limit by adding the &limit=[number]
parameter to the URL. For example, the following URL would allow you to see up to 2000 violations:
<DTP_INSTALL>/grs/dtp/explorers/violations?filterId=11&limit=2000
You can set the limit parameter to any value, but changing the maximum number of violations shown to a large value may affect the performance of the Violation Explorer.
Search by Keyword
You can use the search field to make keyword searches based on the violation message. For example, you can search by keyword "null" and Violations explorer will show you all the violations that include the word "null" in the message.
Case Sensitivity