This topic explains how to configure C/C++test Professional.
Sections include:
If your organization is using Parasoft DTP, we strongly recommend that you adopt the following workflow to simplify configuration and updating of preference settings across your team:
To configure team-wide settings:
Choose Parasoft > Options in the IDE menu bar to open the Parasoft Preferences panel.
To configure each desktop and server installation to use the preferences stored on DTP:
Choose Parasoft > Options in the IDE menu bar to open the Parasoft Preferences panel.
The settings stored on DTP are automatically refreshed for your C/C++test installation every time C/C++test is launched. To refresh the settings without restarting C/C++test:
If you’re working with multiple DTP projects, you can easily switch from one project’s settings to another by choosing a different project in the Configure Project dialog.
You can override team-wide preferences stored on DTP by configuring machine-specific preferences.
If you are using this recommended process, you can updated team-wide settings in Parasoft DTP, then those modifications will automatically be propagated to all the connected machines.
To prevent this automated updating (e.g., because you have updated settings locally and do not want them overridden), disable Use DTP settings on the Preferences page(s) you do not want to be updated from DTP.
To customize preferences:
Choose Parasoft > Options in the IDE menu bar to open the Parasoft Preferences panel.
Specifies general preference and allows you to export preferences to a settings file. Ignore solution and solution folder names in paths: Enables "reduced paths" mode. In this mode—where only reduced (project relative) paths are used. Names of solution and solution folders will be skipped in these paths. New paths will be unique because project names are unique inside a solution.
Maps a team member’s automatically-detected username to a different username and/or email address. See Configuring Task Assignment and Code Authorship Settings.
Specifies the number of Test Configurations available in the Parasoft > Test History menu, the location where custom static analysis rules (user rules) are saved and searched for, and the location where user-defined Test Configurations and rules are saved and searched for.
Specifies settings for the Console view.
Specifies setting for the DTP server. See Connecting to DTP.
Specifies email settings used for report notifications and for sending files to Parasoft Technical Support. See Configuring Email Settings.
Determines the encoding for files without a BOM signature. You can choose to use the system defaults, indicate specific encoding, or automatically detect a specific Far-East language.
Specifies custom tags that the team uses to associate a test case with an issue from an issue/feature/defect tracking system (such as Jira). See Using Custom Defect/Issue Tracking Tags.
Specifies JDBC drivers (for example, drivers required to connect to a database used for parameterizing tests). See Configuring JDBC Drivers.
Specifies license settings. See Licensing.
Specifies parallel processing settings. See Configuring Parallel Processing.
Specifies general options related to how tasks are displayed in the Quality Tasks view. See Configuring Task Reporting Preferences.
Specifies what reports include and how they are formatted. See Configuring Report Settings.
Specifies how C/C++test computes code authorship and assigns tasks to different team members. See Configuring Task Assignment and Code Authorship Settings.
Specifies how C/C++test connects to your source control repositories. See Connecting Source Control.
Specifies options for preparing support archives and sending them to Parasoft Support. See Preparing a Support Archive.
See General Variables for information about variables that can be used in report, e-mail, Parasoft DTP, and license settings.
You can export C/C++test preferences from the GUI to a settings text file. This is useful if you want to:
To export preferences to a settings file:
Choose Parasoft > Options in the IDE menu bar to open the Parasoft Preferences panel.
To import preferences from a settings file or URL:
Choose Parasoft > Options in the IDE menu bar to open the Parasoft Preferences panel.
file:/C:/Users/user1/Documents/cpptest.properties
By default, general Parasoft Preferences are common for all tested solutions/projects. To define preferences specific for a given solution:
Each time the solution is opened, the global preferences will be overridden by the ones read from the parasoft.properties file. After the solution is closed (or another solution is opened), global preferences will be restored.
Solution-specific preferences are read-only. If you modify any preferences in the GUI, the changes will not be reflected in the "parasoft.preferences" file automatically.
You can override the system user name, or example, if you are integrating the product into an automated process and do not want the resulting tasks assigned to the default system name.
parasoft.properties
file located in <Install Directory>\plugins\com.parasoft.ptest.runtime.vstudio.core
user.name=<username>
Note that this configuration is the equivalent to modifying the User name setting at the top level of the Preferences UI.
If you already have settings defined for command-line execution, and they are stored in a local file or at a remote URL, use the -settings
command-line option to specify the file path or URL from which to import the preferences. For example:
cpptestcli -settings my_settings_file |
Note: The file protocol is supported, for example: file:/C:/Users/user1/Documents/cpptest.properties
The use of a proxy is supported.
See Configuring Settings and Testing from the Command Line Interface for details.
To configure your C/C++test instance to use settings stored on DTP, you can do one of the following:
Pass the name and port of DTP, as well as the project name, using the -dtp.autoconfig
command line option, for example:
cpptestcli -dtp.autoconfig [email protected]:8443 |
Enable the dtp.autoconfig
option in a settings file, for example:
dtp.enabled=true dtp.url=https://mydtp.mycompany.com:8443 dtp.project=project1 dtp.autoconfig=true |
See Configuring Settings for details.
To facilitate the testing process, you can specify different subsets of setting and pass them on the command line in a certain hierarchy. This allows you to simultaneously apply, for example:
Be sure to list the most general settings first and the most specific settings last. Settings are processed in the order in which they are listed and any settings that are duplicated across groups will be overridden each time a duplicate is found. Your command line may resemble the following:
cpptestcli -dtp.autoconfig project1@https://concerto.company.com:443 -settings machine_properties -settings project_properties |