UiPath Documentation
test-manager
2023.4
false
Test Manager 用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

SAP 解决方案管理器命令行

SAP 解决方案管理器命令工具可用于检查与 UiPath™ Studio 的集成状态。您可以在默认安装文件夹中找到与每个 Studio 版本一起打包的此工具,如下所示: UiPath.SAP.SolutionManager.CommandLine.exe C:\Program Files\UiPath\Studio\net461。或者,您可以在自定义安装文件夹中找到可执行文件。

命令行参数描述

查看下表,了解可用参数及其使用方法的说明。

命令描述
-s,--status显示注册状态。

To understand error codes, check Troubleshooting status error messages.
-r,--register注册通信接口。
-u,--unregister取消注册通信接口。
-i,--ip显示 Studio 中使用的连接 IP。
-o,--out显示输出文件。
--help显示帮助。
--version显示版本号。

对状态错误消息进行故障排除

以下列表描述了常见的 SAP 解决方案管理器错误及其解决方法:

  • UiPath Plugin not installed: To solve this you need to install the UiPath® Plugin.

  • SAP Connector unavailable: To solve this you need to install the SAP Connector.

    重要提示:

    SAP 连接器仅在 x86 操作系统架构上运行。

  • UiPath Plugin uninstalled, SAP Connector installed: To solve this you need to install the UiPath® Plugin.

  • UiPath Plugin uninstalled, SAP Connector uninstalled: To solve this you need to install both UiPath® Plugin and SAP Connector

    重要提示:

    SAP 连接器仅在 x86 操作系统架构上运行。

  • UiPath Plugin installed, SAP Connector is x64 instead of x86 (plugin cannot work): To solve this you need to install the SAP Connector.

    重要提示:

    SAP 连接器仅在 x86 操作系统架构上运行。

  • 如果在成功配置后从 SAP 实例执行失败,请按照以下步骤解决问题:

    1. 验证 SAP 解决方案管理器客户端是否具有所需的客户端作用域。
      1. 从身份服务数据库的“客户端”表中检索客户端,并搜索客户端名称SapSolaman.OpenId
      2. 检查身份服务的ClientScopes表中是否为客户端分配了以下作用域:
        • TestManager

        • email

        • profile

        • openid

        • TM.TestExecutions

        • TM.TestCases.Read

          查看以下示例,了解您可以在身份服务中使用客户端执行的操作:

          1. 插入新客户端:

            INSERT INTO yourDatabase.identity.clients (ClientID, ClientName, Scope)
            VALUES ('YourClientID', 'YourClientName', 'YourScope')
            INSERT INTO yourDatabase.identity.clients (ClientID, ClientName, Scope)
            VALUES ('YourClientID', 'YourClientName', 'YourScope')
            
          2. 更新现有客户端:

            UPDATE yourDatabase.identity.clients
            SET ClientName = 'YourNewClientName',
                Scope = 'TM.TestCases.Read'
            WHERE ClientID = 'YourClientID'
            UPDATE yourDatabase.identity.clients
            SET ClientName = 'YourNewClientName',
                Scope = 'TM.TestCases.Read'
            WHERE ClientID = 'YourClientID'
            
          3. 将特定作用域插入现有客户端:

            INSERT INTO yourDatabase.identity.client.scopes
            VALUES ('TM.TestExecutions', 'YourClientID')
            INSERT INTO yourDatabase.identity.client.scopes
            VALUES ('TM.TestCases.Read', 'YourClientID')
            INSERT INTO yourDatabase.identity.client.scopes
            VALUES ('TM.TestExecutions', 'YourClientID')
            INSERT INTO yourDatabase.identity.client.scopes
            VALUES ('TM.TestCases.Read', 'YourClientID')
            
    2. 在身份服务表格中对客户端注册进行任何更改后,您需要重新触发登录,以让这些更改反映:
      1. 从此路径中删除文件夹: Users/%Userprofile%/Sap/SAP_Waldorf
      2. 根据 Test Manager 实例的交付选项,请执行以下操作之一:
        • 对于独立 Test Manager:重新启动 IIS 服务器或回收 Identity Server 的应用程序池。
        • 对于 Automation Suite 中的 Test Manager:刷新 Redis 缓存,或重新启动 Identity Pod。
  • 命令行参数描述
  • 对状态错误消息进行故障排除

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新