有关如何在安装期间预配置 C/C++test 以简化跨多个团队机器的一致安装的详细信息,请参阅C/C++test 配置概述

此外,您可以使用静默安装来简化和标准化跨所有团队机器的 Parasoft C/C++test 安装和设置过程。在静默安装过程中,C/C++test 会自动安装在指定目录中,不会显示向导页面(对于 Windows),也不会要求您回复任何安装提示或问题。

本主题说明如何在安装期间预配置 C/C++test 以简化跨多台团队机器的一致安装。此过程适用于所有受支持的平台和 IDE。

各节内容包括:

预配置安装

在安装过程中预配置 C/C++test:

  1. 创建一个 localsettings 文件,其中包含要预配置安装的选项。下面提供了一个示例。有关详细信息,请参见配置本地设置
  2. 使用/configure--configure参数将该 localsettings 文件传递给安装程序。示例:


    • Windows: /configure=<path-to-localsettings-file>
    • Unix: --configure <path-to-localsettings-file>



localsettings 文件将作为 parasofttest.ini 复制到 Parasoft Test 的根目录中。该文件中的设置用于在用户界面模式下启动期间初始化干净的工作空间。

提示 - 配置许可证的其他方法

您还可以在命令行启动时使用 -localsettings 配置许可证。有关详细信息,请参见许可证

如果要将设置应用到现有工作空间,则需要向 localsettings 文件添加附加属性:enforce.configure=true。这将覆盖安装/重新安装后第一次启动期间的现有设置。

请注意,对于 Windows 安装程序:

  • 如果机器上安装了相同版本(或更新版本)的 Parasoft Test,则在安装或重新安装过程中不会复制 localsettings 文件。
  • 如果/ParasoftTestDir中传递的位置与现有 C/C++test 安装的位置不同,则在重新安装期间不会复制 localsettings 文件。

Windows 选项

选项说明

/SILENT
/VERYSILENT

以静默模式运行安装程序。不显示向导和背景窗口。
/DIR=<location>已安装 C/C++test 文件的目标位置。
/EclipseDir=<location>目标平台的位置。仅限 Eclipse 插件安装程序。
/RootSuffix=<suffix>根目录后缀。仅限 VS 安装程序。
/Configure=<localsettings file>在安装步骤中预配置 C/C++test。
/ParasoftTestDir=<location>Parasoft Test 文件的目标位置(如果尚未安装 Parasoft Test ,请使用此选项)。 


有关其他选项和帮助,请参阅 http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline

UNIX 选项(适用于 Linux 或 Mac)

选项说明
--non-interactive以非交互模式运行安装程序。
--target-location <location>目标平台的位置(例如 Eclipse)。仅限 Eclipse 插件安装程序。
--configure <localsettings file>在安装步骤中预配置 C/c++test。
--parasofttest-install-dir <location>Parasoft 测试文件的目标位置。 
--help打印可用的命令行选项


安装示例

Windows

parasoft_cpptest_desktop_10.3.2_win32.exe /SILENT /DIR=<cpptest dir> /ParasoftTestDir=<parasofttest dir> /configure=<localsettings file>
parasoft_cpptest_desktop_10.3.2_win32_eclipse.exe /SILENT /DIR=<cpptest dir> /ParasoftTestDir=<parasofttest dir> /EclipseDir=<eclipse dir> /configure=<localsettings file>

Unix

cpptest_10.3.2.169_linux.sh --non-interactive --parasofttest-install-dir <parasofttest dir> --configure=<localsettings file>
cpptest_10.3.2.169_linux_eclipse_plugin.sh --non-interactive --parasofttest-install-dir <parasofttest dir> --target-location <eclipse dir> --configure=<localsettings file>


示例 localsettings 文件

这是配置许可证的示例 localsettings 文件:

cpptest.license.use_network=true

cpptest.license.network.host=main1.parasoft.com.pl

cpptest.license.network.port=2222

cpptest.license.network.edition=automation_edition

在 Windows 上以静默模式安装 C++test

1.使用以下选项之一以及您要使用的任何其他选项(见下文)在命令行中执行分发文件:

  • /SILENT
  • /VERYSILENT

这会将安装程序切换到非交互模式,安装向导将使用默认配置安装 C++test 和 Parasoft Test。

可用的其他选项包括:

2./DIR=<location>: C++test 文件的目标位置。
3 ./ParasoftTestDir=<location>: Parasoft Test 文件的目标位置(如果尚未安装 Parasoft Test ,请使用此选项)。

4. /EclipseDir=<location>: 目标平台的位置。

在 UNIX 上以静默模式安装 C++test

1。运行 echo "\n1\n\n\n" | <C++test_installer_for_Linux> <options>

  • 如果您要安装独立版本,请使用 --non-interactive  选项。
  • 如果您要安装 Eclipse 插件,请使用 --force --non-interactive --target-location $ECLIPSE_LOCATION 选项


  • No labels