activities
latest
false
- 概述
- 应用程序事件
- 流程图生成器
- 标注
- 复杂场景
- 凭据
- Data Service
- 表单
- FTP
- IPC
- Automation Ops 管道
- 暂留
- 系统
- 发行说明
- 项目兼容性
- 受支持的字符编码
- “正则表达式构建器”向导
- 添加数据列
- 添加数据行
- 添加日志字段
- 加减日期
- 添加事务项目
- 添加队列项目
- 将项目附加至集合
- 将项目附加至列表
- 附加行
- 提示音
- 中断/退出循环
- 浏览文件
- 浏览文件夹
- 构建集合
- 构建数据表
- 批量添加队列项目
- 更改文本大小写
- 更改类型
- 检查 False
- 检查 True
- 清除数据表
- 从集合到数据表
- 注释
- 压缩文件/Zip 文件
- 复制文件
- 复制文件夹
- 合并文本
- 注释掉/禁用的活动
- 继续/跳过当前
- 创建文件
- 创建文件夹
- 创建列表
- 自定义输入
- 删除
- 删除文件
- 删除文件夹
- 删除存储文件
- 删除队列项目
- 禁用本地触发器
- Do While 循环
- 从 URL 下载文件
- 下载存储文件
- 启用本地触发器
- 评估业务规则
- 存在于集合中
- 提取/解压缩文件
- 从文本中提取日期和时间
- 提取文本
- 文件更改触发器
- 文件已存在
- 筛选集合
- 筛选数据表
- 文件夹存在
- 遍历循环
- 适用于文件夹中的每个文件
- 文件更改触发器 v3
- 查找和替换
- 查找匹配模式
- 对于文件夹中的每个文件夹
- 对于数据表中的每一行
- 将日期格式设置为文本
- 为值添加格式
- 从文本中生成数据表
- 获取资产
- 获取凭据/获取 Orchestrator 凭据
- 获取当前作业信息
- 获取环境文件夹
- 获取环境变量
- 获取文件信息
- 获取文件夹信息
- 获取作业
- 获取进程
- 获取行项目
- 获取密码
- 获取事务项目
- 获取用户名/密码
- 获取队列项目
- 全局变量更改触发器
- 输入对话框
- 调用代码
- 调用 COM 方法
- 调用 PowerShell
- 调用流程
- 调用 VBScript
- 调用工作流文件
- 是否为文本匹配
- 联接数据表
- 终止进程
- 启动工作流交互
- 列出存储文件
- 日志消息
- 查找数据表
- 手动触发器
- 合并集合
- 合并数据表
- 消息框
- 修改日期
- 修改文本
- 移动文件
- 移动文件夹
- 多重分配
- 向队列新增项目
- 通知全局变量已更改
- Orchestrator HTTP 请求
- 输出数据表
- 并行
- 并行的遍历循环
- 存在路径
- 推迟事务项目
- 流程终止触发器
- 流程启动触发器
- 流程跟踪作用域
- 发出警示
- 读取列表项目
- 读取文本文件
- 读取存储文本
- 删除数据列
- 删除数据行
- 删除重复行
- 从集合中删除
- 删除日志字段
- 替换匹配模式
- 重复次数
- 重复触发器
- 重命名文件
- 重命名文件夹
- 报告状态
- 重置计时器
- 恢复计时器
- 重试作用域
- 返回
- 运行本地触发器
- 运行代理
- 运行作业
- 运行并行流程
- 设置资产
- 发送电子邮件通知
- 设置凭据
- 设置环境变量
- 设置密码
- 设置任务状态
- 设置追踪状态
- 设置事务进度
- 设置事务状态
- 应停止
- 拆分文本
- 数据表排序
- 启动计时器
- 开始作业
- 停止作业
- 停止本地触发器
- 停止计时器
- 左侧/右侧的文本
- 要大写/小写的文本
- 时间触发器
- 触发器作用域
- 跟踪对象
- 超时作用域
- 更新行项目
- 更新列表项目
- 上传存储文件
- 等待下载
- 等待队列项目
- 先条件循环
- 工作流占位符
- 写入存储文本
- 写入文本文件
- 添加数据行
- AddQueueItem
- 添加事务项目
- 附加行
- BulkAddQueueItems
- 清除数据表
- 压缩 Zip 文件
- 复制文件
- 创建文件
- 创建文件夹
- 删除文件或文件夹
- 删除队列项目
- 删除存储文件
- 下载存储文件
- 提取解压缩文件
- 筛选数据表
- 获取资产
- 获取凭据
- GetJobs
- 获取队列项目
- GetQueueItems
- 获取本地路径的资源
- 获取行项目
- 获取事务项目
- 调用流程
- 联接数据表
- 列出存储文件
- 查找数据表
- 合并数据表
- 移动文件
- Orchestrator HTTP 请求
- OutputDataTable
- 存在路径
- 推迟事务项目
- 读取存储文本
- 读取文本文件
- 删除数据列
- 删除重复行
- 替换
- 设置资产
- 设置凭据
- SetTransactionProgress
- 设置事务状态
- 数据表排序
- 开始作业
- 停止作业
- 更新行项目
- 上传存储文件
- 等待队列项目
- 写入存储文本
- 写入文本文件
- 测试
- 发行说明
- 关于“测试”活动包
- 项目兼容性
- 项目设置
- Address
- AddTestDataQueueItem
- AttachDocument
- BulkAddTestDataQueueItems
- DeleteTestDataQueueItems
- GetTestDataQueueItem
- GetTestDataQueueItems
- GivenName
- LastName
- RandomDate
- RandomNumber
- RandomString
- RandomValue
- VerifyAreEqual
- VerifyAreNotEqual
- VerifyContains
- VerifyExpression
- VerifyExpressionWithOperator
- VerifyIsGreater
- VerifyIsGreaterOrEqual
- VerifyIsLess
- VerifyIsLessOrEqual
- VerifyIsRegexMatch
- VerifyRange
- Workflow Foundation
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。

工作流活动
上次更新日期 2026年2月20日
验证带有运算符的表达式
UiPath.Testing.Activities.VerifyExpressionWithOperator
描述
通过使用运算符相对于给定表达式断言表达式来验证表达式。 使用此活动测试的表达式必须插入到各自的属性字段中。
项目兼容性
Windows - 旧版 | Windows | 跨平台
Windows - 旧版配置
设计器面板
- FirstExpression - The first expression in the verification process.
- Operator - A drop-down list containing all of the possible mathematical operators you can use to verify the two expressions. The following options are available:
- 平等
- 不等式
- GreaterThan
- 大于或等于
- 小于
- LessThanOrEqual
- SecondExpression - The second expression in the verification process.
- 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.
- FirstExpression - The first expression in the verification process.
- Operator - A drop-down list containing all of the possible mathematical operators you can use to verify the two expressions. The following options are available:
- 平等
- 不等式
- GreaterThan
- 大于或等于
- 小于
- LessThanOrEqual
- SecondExpression - The second expression in the verification process.
- 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、跨平台配置
- FirstExpression - The first expression in the verification process.
- Operator - A drop-down list containing all of the possible mathematical operators you can use to verify the two expressions. The following options are available:
- 平等
- 不等式
- GreaterThan
- 大于或等于
- 小于
- LessThanOrEqual
- SecondExpression - The second expression in the verification process.
- 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.
- TakeScreenshotIfFailed - If set to
高级选项
输入
- 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.
通配符
验证字符串类型的变量时,请使用通配符匹配未知值或任何值。 您可以在字符串的开头、中间或结尾连接通配符(例如 "abc?" = "abc*")。
条件
- 要将通配符匹配为文本,您需要对其进行转义。
- 只有第二个表达式允许使用通配符。
支持的通配符
| 通配符 | 描述 |
|---|---|
| #(数字符号) | 匹配单个字符。 |
| ? (问号) | 匹配单个字母数字字符。 |
| * (星号) | 匹配零个或多个字母数字字符。 |
用例场景
在以下示例中,# 和 * 通配符已用于匹配在第一个表达式中找到的已知值。

配置输出消息格式
“输出消息格式”属性可以配置受支持的参数,这些参数可充当验证操作中所用值的占位符。这些占位符将自动填充为您在运行时调用活动时定义的变量或值。
对于“使用运算符验证表达式”活动,您可以在创建输出消息时实施以下支持的参数:
{LeftExpression}:表示您为“首个表达式”属性提供的首个表达式的值。{LeftExpressionTextName}:表示您为“第一个表达式”属性插入的第一个表达式的文本。{RightExpression}:表示您为“第二个表达式”属性提供的第二个表达式的值。{RightExpressionText}:表示您为“第二个表达式”属性插入的第二个表达式的文本。{Result}:表示活动输出值,即验证结果。{Operator}:表示验证中使用的运算符,由“运算符”属性设置。
以下示例说明了如何为“使用运算符验证表达式”活动配置输出消息:"{LeftExpression} {Operator} the {RightExpression}, so the verification is {Result}."
在提供的示例中,大括号中的占位符在运行时替换为相应的变量名称及其值,从而提供自定义的输出消息。