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.acceptedfrom '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 license.network.auth.enabled=true license.network.user=<USER> license.network.password=<PASSWORD> ## 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
cpptestcovorcpptestctworking directory - User home directory
- C/C++test CT installation directory (
<INSTALL_DIR>) - Another location explicitly specified with the
-settingsflag:cpptestcov compute -settings /path/to/cpptestcov.properties
Hints:
- To encrypt plain passwords, use the
cpptestct encodepasscommand. An encrypted password can be put directly into the settings file (.properties). - To generate the machine id (required for a local license), use the
cpptestct machineidcommand.