In this section
The Parasoft Flow Analysis Importer extension sends JSON-formatted analysis results to Parasoft (DTP). The results can be processed and viewed along with other data points from your SDLC processes and tools. The integration also adds scope, authorship, and source control support that further enhance the imported results. Additionally, it allows the generation of a Parasoft Report that shows violations for each author and each severity.
This integration gives a development organization the ability to aggregate the results of all testing efforts across a variety of technologies, or even compare and contrast results from different analysis tools in one centralized location—increasing productivity and efficiency.
parasofttestcli.sh -Dsettings="C:\sample\flow-analysis-settings.properties" -Ddata.dir="C:\sample\sampleProjectFolder" -Dresults.file="c:\sample\results.json" |
The following settings are required.
Path to the settings configuration file (see Configuration).
Windows example: -Dsettings="C:\path\to\file\settings.properties"
Unix example: -Dsettings="/path/to/file/settings.properties"
-Ddata.dir
Specifies the path to the source code of the project that was analyzed. This is used to collect source control metadata (e.g., authorship, last updated, etc.) for DTP reporting and processing.
-Dresults.file
The path to the JSON results file. The file may be an absolute path or relative to the directory specified by -Ddata.dir
.
The following parameter is not required.
-Dparasoft.local.storage.dir
Specifies where log files are generated. The recommended location is ${project.base.dir}/.parasoftanalyzer. For example:
-Dparasoft.local.storage.dir=.parasoftanalyzer
See the Parasoft Analyzer package documentation for a complete list of configurations.
The following settings are required to run the Flow Analysis Importer extension.
Enables the importer. Values are true
or false
.
Example:
analyzer.flowanalysisimporter.enabled=true
Sample JSON files are provided in the downloaded artifact (see the examples/FlowAnalysisImporter/ directory). A JSON Schema file is also available (see examples/FlowAnalysisImporter/flow-analysis-report.schema.json).
In general, JSON results files should be structured as follows:
totalViolation
: The total number of violations referenced in this report.tool
: Information about the third-party tool that has performed the flow analysis.violations
: An array of the violations (defined under #/definitions/violation). This should contain information about each violation, including trace elements (i.e., the call stack list).rules
: An array of the rules that used for this report.The type
under the trace
object describes the status of the line. It normally has one or two types to represent the state. Available type indicators are:
.
(period) indicates that line has been covered and reviewed.E
indicates an "exception" on the line.!
(exclamation point) indicates an "alert" or "attention needed" mark on the line. These marks may indicate, for example, the point where an exception was thrown. P
indicates where the problem occurred.C
indicates the line that caused the issue/violation.For example, the state of each traced line can be represented by the following combinations of type indicators:
.
indicates that the analyzer checked this line and did not find any issues or problems. .P
indicates that the analyzer checked this line and found that a problem occurred at this line..C
indicates that the analyzer checked this line and determined that this line triggered a problem.!E
indicates that an exception was thrown at this line and needs to be reviewed.The following updates have been made to the Flow Analysis Importer extension.
The Parasoft End User License Agreement (EULA) is available at https://www.parasoft.com/parasoftlicense.