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

创建参数

Create string parameters for a test case, with naming rules and default value and hint fields.

您可以为测试集中的每个测试用例创建参数。您最多可以添加 250 个参数,并且每个参数都需在测试用例的上下文中具有唯一名称。

Parameters can only be of type String. Parameters that you create in the Parameters tab of a test case can be used only for manual test executions.

步骤​

  1. 打开要向其中添加参数的测试用例。
  2. 转到“参数”选项卡。
  3. Select Create Parameter and fill in the following fields:
    • Name: Give the parameter a unique name. When you name the parameter, you can use letters, numbers, spaces, and the following characters: -, _, ,, and .. For example, name the parameter as adminName.
    • Default value: Enter the default value of the parameter. Parameters can only be of type String. This field is not mandatory, so if you leave it empty, the parameter is an empty string. For example, set the default value to JohnDoe.
    • Hint: Offer additional information about the information that the parameter holds. For example, add the following hint: The supervisor of the organization.
  4. 选择“创建” ,以创建参数。

结果​

参数已创建并且在测试用例的 Parameters(参数)选项卡中可用。对于手动执行,您可以使用双大括号在手动步骤中引用参数,该值会在 Runtime 应用。

  • 步骤​
  • 结果​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新