先决条件
执行以下步骤,作为安装“Test Manager”的先决条件的一部分。
1. 需求
Check the Hardware Requirements and Software requirements before installation.
2. 安装并启用测试自动化
您可以在安装或升级 Orchestrator 时启用测试自动化模块。到达UiPath Orchestrator “设置”时,选择“测试自动化” 。
此外,您可以根据安装类型执行以下步骤,以在 Orchestrator 中启用“测试自动化”功能:
- 对于 MSI 安装:
-
在 Orchestrator 网页应用程序服务器上,导航至“控制面板” ,然后导航至“程序” 。
-
选择“Orchestrator” ,然后单击“更改” 。
-
Select Test Automation.
系统将显示一个弹出窗口,其中描述了用于完成操作的其他步骤。
-
请按照弹出窗口中的步骤完成操作。
-
- 对于在 Azure PaaS 中部署的 Orchestrator:
- 在运行
Publish-Orchestrator.ps1脚本之前,请为您的应用程序服务配置以下设置:-
AppSettings :密钥 =
TestAutomation.ModuleEnabled- 设置为 True 以启用测试自动化模块。 -
AppSettings :密钥 =
TestAutomation.FeatureEnabledByDefault- 设置为 True 以默认启用测试自动化模块。 -
ConnectionString: Name =
TestAutomation- Set the Test Automation database connection string. You can either use a connection string similar to the one used for Orchestrator, or a different one altogether. For example:Server=13.13.13.13;Initial Catalog=UiPath;Persist Security Info=False;User ID=dbUser;Password=pass123; MultipleActiveResultSets=False;Encrypt=True; Connection Timeout=30;TrustServerCertificate=True.警告:确保将这些设置标记为
Deployment slot setting,尤其是在使用热插拔插槽的情况下。
-
- 如果您已在未启用测试自动化模块的情况下部署了 Orchestrator,请使用与升级相同的参数运行
Publish-Orchestrator.ps1脚本,并添加-testAutomationFeatureEnabled参数。 - 如果升级 Orchestrator 实例,请在运行
Publish-Orchestrator.ps1脚本之前将-testAutomationFeatureEnabled参数添加到该脚本中。
- 在运行
3. 配置 SQL Server 用户
为您在“数据库设置”安装选项卡的“身份验证模式”字段中提供的 SQL 用户提供创建数据库的必要权限。在安装 Test Manager 的过程中,将创建一个新的专用数据库。
在 Orchestrator 中启用“测试自动化”功能时,它会创建一个默认名称为“UiPathTestAutomation”的专用数据库。该数据库与在安装 Test Manager 期间创建的数据库不同。
-
Regardless of the type of user (domain or SQL) you want to connect to SQL Server, please note that you need to assign it the
dbcreatorServer Role BEFORE installing Test Manager, as the database is created during this installation process. -
If security restrictions do not allow the use of the
dbcreatorServer Role in the service account, create the empty database in SQL Server.Windows 安装程序连接到 SQL Server 以验证数据库是否存在。
-
创建数据库后,您需要为连接到 SQL 数据库的用户提供
db_owner用户映射角色,如以下屏幕截图所示。
4. 下载安装工具包
前往Customer Portal下载 UiPath Test Manager 安装工具包。
5. 配置 SQL Server 实例
使用以下要求配置要用于安装 Test Manager 的 SQL Server 实例:
- SQL Server 计算机的名称;
- 实例的名称(如果它不是默认实例);
- TCP 端口的值(如果不是默认端口):1433;
- SQL Server 端口已在 SQL Server 计算机的防火墙中打开;
- 必须启用 SQL Server 配置管理器中的 TCP 协议;
- SQL Server 服务需为侦听固定端口,而不是动态分配的端口。
6. 在租户级别分配 Testing Runtime 许可证
安装 Test Manager 后,您必须为将在其中使用 Test Manager 的租户分配测试运行时许可证。