Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DTPDEVEL and version 2022.1
Info

The features and functionality described in this section have been deprecated.

In this section:

Table of Contents

...

  • Parasoft static analysis tool version 10.4.0 or later.
  • DTP version 5.4.0 or later.
  • Java 8 or later (provided in DTP installation).
  • Access to DTP file system to collect data from TCM.
  • DTP user name and password to migrate (upload) data to DTP.

...

  1. Run static analysis on the code associated with TCM suppressions using a 10.4.0 or later static analysis tool and send the results to DTP. This enables DTP to map TCM suppressions to DTP violations.
  2. On the machine where DTP is running, execute the TCM Suppressions Tool using the following command:

    Code Block
    languagetext
    java -jar TcmSuppressionsTool.jar -w -f <FILENAME>.json -i <DTP_INSTALL_DIR> -t <TCM_USERNAME> -l <TOOLNAME>

    This command reads the TCM storage files on disk, collects information about TCM suppressions, and stores the information in a JSON file on disk. Because the file system is accessed directly, this command must be executed on the machine running DTP. See TCM Tool Options for details about the options.

    Info
    titleJava 8 is required

    You can use the Java executable shipped with DTP located at [DTP_INSTALL]/jre/bin/java to ensure that you are using a supported version of Java.

  3. Execute the TCM Suppressions Tool using the following command to migrate the suppressions to DTP:

    Code Block
    languagetext
    java -jar TcmSuppressionsTool.jar -m -f <FILENAME>.json -d <PROTOCOL>//<DTP_HOST>:<DTP_PORT> -u <DTP_USERNAME> -p <DTP_PASSWORD> -b <BUILD_ID>

    This command reads the JSON file and uploads the data to DTP using the DTP REST API. You can run this command from any machine that can create an HTTP connection to DTP. The TCM suppressions are compared with the static analysis results for a specified build. See TCM Tool Options for details about the options.

    Info
    titleHiding your password in the command

    If you do not want to use a password in the command line, omit the -p option and you will be prompted for a password.  

  4. Existing results are not changed on DTP–the only change is that the violations have been marked for suppression in the next static analysis run. To use the suppression information stored on DTP, run static analysis again (using the 10.4.0 or later tool). The violations marked to be suppressed on DTP are reported as suppressions.

...