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

覆盖参数

使用已删除或清除值的版本特定行为和规则覆盖 Test Manager 测试集中的测试用例参数。

通过覆盖测试集中测试用例的参数来自定义您的测试流程。您可以覆盖测试用例特定版本的参数,具体取决于执行覆盖操作时选择的版本。

注意事项

  • 已覆盖并在以后删除的参数仍将显示在“覆盖参数”窗口中,使您能够决定何时将其删除。
  • 如果在原始自动化项目中更改了参数名称,则 Test Manager 还将更新测试集中的参数名称。
  • 克隆的测试集在复制过程中会保留原始参数值。
  • To reliably remove an individual override, use Override next to that parameter. The bulk Remove overrides action does not always clear existing overrides for every parameter.

步骤

  1. 转到“测试集”并打开测试集。

  2. 转到“测试用例”选项卡。

  3. 选择要使用不同参数值运行的测试用例。

  4. 选择“覆盖参数”“覆盖参数”窗口将打开,其中列出所选测试用例中的所有参数,这些参数是在 Test Manager 中手动创建或从测试用例的所选自动化导入的。

    “覆盖参数”窗口显示手动创建的 Test Manager 参数和来自链接自动化的 Studio 参数。如果 Studio 参数和手动创建的 Test Manager 参数共享相同的名称和数据类型,则 Test Manager 参数值会自动覆盖 Studio 值。您也可以通过选择“覆盖”并在“值”字段中输入新值来手动覆盖任何参数。

  5. 在参数列表中,您可以执行以下操作:

    • 覆盖单个参数:
      1. 在要修改的参数的“名称”字段旁边,选择“覆盖”
      2. “值”字段中,输入新值。
      3. 对要覆盖的每个参数重复这些步骤。
    • 覆盖所有参数:
      1. 选择“覆盖全部”可为所有参数启用覆盖。
      2. 在每个参数的“值”字段中,输入新值。
    • “删除覆盖”:选择“删除覆盖”可禁用覆盖所选测试用例中任何参数的功能。

Considerations for data-driven test cases

备注:

For data-driven test cases using a JSON data file, updating a parameter's value in Test Manager does not override that argument if it is already present in the JSON file attached to the automation in Studio. Only parameters not present in the JSON file are affected by a Test Manager-level update. To change a value for an argument defined in the JSON file, republish the project from Studio with the updated file.

结果

参数覆盖将应用于测试集中的选定测试用例。执行测试集时,测试用例会使用已覆盖的参数值运行。

  • 注意事项
  • 步骤
  • Considerations for data-driven test cases
  • 结果

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新