activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年2月23日

验证范围

UiPath.Testing.Activities.VerifyRange

描述

验证表达式是否位于给定范围内。使用此活动测试的表达式必须插入到其各自的属性字段中。

项目兼容性

Windows - 旧版 | Windows | 跨平台

Windows - 旧版配置

设计器面板
  • 表达式 - 要在给定范围内验证的表达式。
  • 下限 - 范围的下限。
  • TakeScreenshotIfFailed - If set to True, takes a screenshot of the target process if the verification has failed.
  • TakeScreenshotIfSucceded - If set to True, takes a screenshot of the target process if the verification has been successful.
  • 上限 - 范围的上限。
  • 验证类型 - 包含可用于验证表达式的运算符的下拉列表。可选择以下选项:
    • 不在
属性面板

常见

“显示名称”- 活动的显示名称。

输入

  • 失败时继续- 指定在活动抛出错误时是否应继续自动化操作。该字段仅支持“布尔值”(True、False)。默认值为“True”。因此,无论出现何种错误,项目都会继续执行。如果该值设置为 False,且活动引发错误,项目将停止执行。
    备注:

    If this activity is included in Try Catch and the value of the ContinueOnFailure property is True, no error is caught when the project is executed.

  • 表达式 - 要在给定范围内验证的表达式。
  • 下限 - 范围的下限。
  • TakeScreenshotIfFailed - If set to True, takes a screenshot of the target process if the verification has failed.
  • TakeScreenshotIfSucceded - If set to True, takes a screenshot of the target process if the verification has been successful.
  • 上限 - 范围的上限。
  • 验证类型 - 包含可用于验证表达式的运算符的下拉列表。可选择以下选项:
    • 不在

消息

  • AlternativeVerificationTitle - Specifies an alternative display name. This property overrides the default DisplayName, which is the verification activity name that shows up in Orchestrator.
  • 输出消息格式- 指定输出消息的格式。要设置全局输出消息格式,请参阅项目设置。有关更多信息,请查看“配置输出消息格式”部分。

其他

“私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

输出

Result - Reflects the state of the verification activity. You can use this to send notifications or create reports for failed verifications.

Windows、跨平台配置

  • 表达式 - 要在给定范围内验证的表达式。
  • 下限 - 范围的下限。
  • TakeScreenshotIfFailed - If set to True, takes a screenshot of the target process if the verification has failed.
  • TakeScreenshotIfSucceded - If set to True, takes a screenshot of the target process if the verification has been successful.
  • 上限 - 范围的上限。
  • 验证类型 - 包含可用于验证表达式的运算符的下拉列表。可选择以下选项:
    • 不在
高级选项

输入

  • ContinueOnFailure - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
  • TakeScreenshotIfFailed - If set to True, takes a screenshot of the target process if the verification has failed.
  • TakeScreenshotIfSucceded - If set to True, takes a screenshot of the target process if the verification has been successful.

消息

  • AlternativeVerificationTitle - Specifies an alternative display name. This property overrides the default DisplayName, which is the verification activity name that shows up in Orchestrator.
  • 输出消息格式- 指定输出消息的格式。要设置全局输出消息格式,请参阅项目设置

输出

Result - Reflects the state of the verification activity. You can use this to send notifications or create reports for failed verifications.

支持的数据类型

支持不支持
charstring
DateTimebool
sbytearrays
bytelists
short
ushort
int
uint
ulong
long
float
double
decimal

配置输出消息格式

“输出消息格式”属性可以配置受支持的参数,这些参数可充当验证操作中所用值的占位符。这些占位符将自动填充为您在运行时调用活动时定义的变量或值。

对于“验证范围”活动,您可以在创建输出消息时实施以下支持的参数:

  • {Expression} :表示您为“表达式”属性提供的表达式的值。
  • {ExpressionText} :表示您为“表达式”属性插入的表达式的文本。
  • {Operator} :对应于“验证类型”属性。
  • {LowerLimit} :指示您用于“下限”属性的变量值。
  • {LowerLimitText} :指用于“下限”属性的变量的文本表示。
  • {UpperLimit} :表示用于“上限”属性的变量名称。
  • {UpperLimitText} :指向用于“上限”属性的变量的文本值。
  • {Result}:表示活动输出值,即验证结果。

以下示例显示了如何为“验证范围”活动配置输出消息: "The {Expression} should be greater than {LowerLimitText}, and less than {UpperLimitText}"

在提供的示例中,大括号中的占位符在运行时替换为相应的变量名称及其值,从而提供自定义的输出消息。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。