UiPath Documentation
test-manager
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Test Manager 用户指南

上次更新日期 2026年4月20日

参数

创建参数

您可以为测试集中的每个测试用例创建参数。您最多可以添加 250 个参数,并且每个参数都需在测试用例的上下文中具有唯一名称。
参数只能是String类型。
  1. 打开要向其中添加参数的测试用例。
  2. 转到参数选项卡。
  3. 选择“创建参数”并填写以下字段:
    1. 名称- 为参数提供唯一的名称。
      命名参数时,可以使用字母、数字、空格以及以下字符: -_,.
      例如,将参数命名为adminName
    2. “默认值” - 输入参数的默认值。
      请记住,参数类型只能是String
      “默认值”字段不是必填项,因此,如果您将其留空,则参数将为空字符串。
      例如,将默认值设置为JohnDoe
    3. 提示- 提供有关参数所保存信息的其他信息。
      对于此示例,添加以下提示: The supervisor of the organization
  4. 选择“创建”以创建参数。

编辑参数

创建参数后,您可以根据用例编辑它们。
  1. 打开要编辑参数的测试用例。
  2. 转到参数选项卡。
  3. 选择要编辑的参数旁边的“编辑”
  4. “编辑参数”窗口中,更新要更改的字段。
  5. 选择“保存”以保存更改。

在手动测试中使用参数

您可以在手动或自动测试中使用参数与为每个测试用例设置的默认值。或者,您可以覆盖测试集中测试用例的默认参数值。有关覆盖参数值的信息,请访问覆盖参数
  1. 创建一个新的测试用例。
  2. 根据要使用的执行类型,请按照以下步骤操作:
    • 手动执行:
      1. 转到“手动步骤”选项卡,然后添加手动步骤。
      2. 要将参数引用到手动步骤中,请在双大括号之间输入其名称。
        例如,要在手动步骤中添加username参数,请将其引用为{{username}}


    • Automated execution: During the automated execution of a test set, the Studio arguments from the automation (corresponding to each test case) are automatically applied (as parameters) in Test Manager, at test-set level for each test case added in the test set.
    Tip: In Test Manager, parameters created for test cases do not automatically map to the arguments defined in the Studio automation, even if they share the same name. Test Manager parameters operate independently from the arguments defined in Studio. When you create a parameter in Test Manager, it does not automatically pass its value to the Studio automation during execution. The intended workflow is to use overriding parameters from the test-set level.
  • 创建参数
  • 编辑参数
  • 在手动测试中使用参数

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新