活动
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
工作流活动
Last updated 2024年7月19日

VerifyAreNotEqual

验证两个表达式是否不相等。

定义

命名空间: UiPath.Testing.API

程序集: UiPath.Testing.Activities.Api(在 UiPath.Testing.Activities.Api.dll 中)

VerifyAreNotEqual(object, object, string)

bool VerifyAreNotEqual(
       object firstExpression,
       object secondExpression,
       string outputMessageFormat =  null
)bool VerifyAreNotEqual(
       object firstExpression,
       object secondExpression,
       string outputMessageFormat =  null
)
firstExpression 对象
验证流程中的第一个表达式。
secondExpression 对象
验证流程中的第二个表达式。
outputMessageFormat 字符串
输出消息的格式。 支持的参数包括:
  • {LeftExpression}
  • {LeftExpressionText}
  • {RightExpression}
  • {RightExpressionText}
  • {Result}
  • {Operator}
例如,您可以使用以下输出消息格式:
"{LeftExpressionText}
    (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression})
    has result {Result}."{LeftExpressionText}
    (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression})
    has result {Result}.
此消息格式指示使用特定运算符在两个值或变量( LeftExpressionRightExpression )之间进行比较。 {Result}表示此比较的结果。

返回值

如果表达式不相等,则为True ;如果验证相等,则为False
  • 定义
  • VerifyAreNotEqual(object, object, string)
  • 返回值

此页面有帮助吗?

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