DTP can display source code in explorer views so that you can view violations, coverage, and other annotations within the context of the code. Users must have permissions to view source code. Refer to the User Administration section for information about permissions.
You can make sources available to DTP in two ways.
Publish the Sources to DTP
You can configure the connected Parasoft tools to publish source to DTP during when sending results of the code analysis and/or test execution. When using this method, source code files are stored on DTP and served to a source code viewer from the server's storage.
See Displaying Source Code from Test and Analysis Tools for additional information.
Displaying the Code from Source Control
You can provide DTP with access to the source control management (SCM) system so that it can display sources in a source code viewer. In this method, Parasoft tools include SCM information about the specific runs when reporting code analysis and test execution results to DTP. When an explorer view (or other source code viewing interface) requests a source, DTP retrieves the source file associated with code analysis or test run from source control.
See Displaying Source Code from Source Control System for additional information.
Source Code File Encoding
By default, DTP assumes that source code is encoded in UTF-8. If the source code is encoded with a different character set, you can specify it in the Parasoft Test Settings form by adding the You can configure this setting for individual projects or for all projects if all source code is encoded in the same way. See Configuring Parasoft Test for All Projects for additional information.file.encoding.name
property. For example:file.encoding.name=UTF-16