This topic explains how to preconfigure C/C++test during installation.
Preconfiguring C/C++test allows you ensure consistency of basic configuration settings across multiple machines before C/C++test is launched. See C/C++test Configuration Overview for details about sharing C/C++test preferences after installation.
To preconfigure C/C++test during installation:
[INSTALL_DIR]
.The settings specified in theĀ parasofttest.ini file are used to initialize a clean workspace when you launch the C/C++test GUI. To apply the settings to an existing workspace, add the following setting to theĀ parasofttest.ini file:
enforce.configure=true |
As a result, the settings specified in parasofttest.ini override existing settings during the first startup after C/C++test installation or reinstallation.
cpptest.license.use_network=true dtp.enabled=true dtp.url=https://onya.mycompany.com:8443 dtp.user=user1 dtp.password=mypassword |
See Licensing for details about setting a Parasoft license.
C/C++test preconfiguration described in this section is only to be applied in advanced installation scenarios, such as silent installation; see Silent Installation.
If you install C/C++test as a plugin for Eclipse, the location of the C/C++test installation directory and the default location of Eclipse to be used with cpptestcli
are automatically detected on the first startup of Eclipse after the plugin is installed. The locations can be customized as described in Installing and Launching C/C++test. Alternatively, you can preconfigure C/C++test to specify the locations before you start working with C/C++test.
This section explains how to preconfigure C/C++test to specify the installation locations of C/C++test and Eclipse.
Silent Installation
To pre-configure the location of the Eclipse instance you want to use with cpptestcli
, create a .pathtoeclipse file that includes the absolute path to Eclipse and save it in the C/C++test installation directory <INSTALL_DIR>
. For example:
D:\eclipses\my_eclipse |
To preconfigure the location of the C/C++test installation directory:
<ECLIPSE_INSTALL_DIR>/configuration/.settings/com.parasoft.xtest.checkers.eclipse.core.cpp.prefs
.Configure the absolute path to the C/C++test installation directory with the cpptest_distro_loc
option. For example:
cpptest_distro_loc=D\:\\tools\\cpptest |