This topic explains how to set the license.
- You must accept the Parasoft End User License Agreement (EULA) to use C/C++test CT. To accept the EULA, change
parasoft.eula.accepted
from 'false' to 'true' in the example below. - Be sure Parasoft License Server or Parasoft DTP is deployed in your organization.
To license the cpptestcov compute
command, create the cpptestcov.properties
(or cpptestct.properties
) configuration file with the license settings:
# Accept the Parasoft EULA to use this product parasoft.eula.accepted=false # Use local license cpptestct.license.use_network=false cpptestct.license.local.password=<LICENSE> # Use network license - be sure to configure License Server or DTP below cpptestct.license.use_network=true cpptestct.license.network.edition=compliance_edition ## For network license retrieved from License Server: license.network.url=<HOST>:<PORT> license.network.use.specified.server=true ## For network license retrieved from DTP Server: dtp.url=<HOST>:<PORT> dtp.user=<USER> dtp.password=<PASSWORD>
The cpptestcov.properties
(or cpptestct.properties
) file should be placed in one of the following locations:
- The
cpptestcov
orcpptestct
working directory - User home directory
- C/C++test CT installation directory (
<INSTALL_DIR>
) - Another location explicitly specified with the
-settings
flag:cpptestcov compute -settings /path/to/cpptestcov.properties
Hints:
- To encode (encrypt) plain passwords, use the
cpptestct encodepass
command. An encoded password can be put directly into the settings file (.properties). - To generate the machine id (required for a local license), use the
cpptestct machineid
command.