本指南旨在帮助您从 C/C++test Professional 2020.2 或更早版本迁移。
从 2021.1 版本开始,C/C++test Professional 安装了新一代安装程序,简化了安装过程。上一代安装程序在此称为遗留安装程序。
主要变更:
<INSTALL_DIR>/integration/eclipse
中提供。如果您在命令或脚本中使用 C/C++test 文件和实用程序来自动化软件测试(例如,在 CI 工作流中),请更新它们的位置。下表显示了 C/C++test 关键实用程序、文件和组件的当前位置。
实用程序/文件/组件 | 之前 | 之后 |
---|---|---|
cpptesttrace | <INSTALL_DIR>/cpptesttrace | <INSTALL_DIR>/bin/cpptesttrace |
cpptestscan | <INSTALL_DIR>/cpptestscan | <INSTALL_DIR>/bin/cpptestscan |
cpptestcc | <INSTALL_DIR>/cpptestcc | <INSTALL_DIR>/bin/cpptestcc |
编译器配置 | <INSTALL_DIR>/engine/etc/compilers | <INSTALL_DIR>/bin/engine/etc/compilers |
C/C++test 的运行时库 | <INSTALL_DIR>/engine/runtime | <INSTALL_DIR>/bin/engine/runtime |
ASMTools | <INSTALL_DIR>/engine/asmtool | <INSTALL_DIR>/bin/engine/asmtool |
cpptestcc 的运行时库 | <INSTALL_DIR>/engine/coverage/runtime | <INSTALL_DIR>/bin/engine/coverage/runtime |
如果安装在同一 IDE 中,使用新安装程序安装的 C/C++test 插件和使用旧安装程序安装的 C/C++test 插件将发生冲突。在安装新版本之前,您需要确保已卸载旧版本的 C/C++test 插件。
如果您不小心将新插件和旧插件安装在同一个 IDE 中,则会提示您卸载旧插件,然后重新安装新的 C/C++test 插件:
以下是解决问题的步骤:
<ECLIPSE_INSTALL_DIR>/links 中的两个
com.parasoft.*文件、C/C++test 安装目录和 Parasoft Test 安装目录 (通常为 , cpptest-extension/<version>
和 test-extension/<version>
)。执行干净的 C/C++test 插件安装。请参见将 C/C++test 作为插件安装。