- 发行说明
- 入门指南
- 设置和配置
- 自动化项目
- 依赖项
- 工作流类型
- 文件比较
- 自动化最佳实践
- 源代码控件集成
- 调试
- 诊断工具
- 工作流分析器
- 变量
- 参数
- 导入的命名空间
- 基于触发器的 Attended 自动化
- 控制流程
- 对象存储库
- 日志记录
- ScreenScrapeJavaSupport 工具
- Studio 测试
- 扩展程序
- 故障排除
概述
Data-driven testing lets you test RPA workflows and applications across various scenarios. To ensure your test cases use the prepared test data, debug and run data-driven test cases only from the Test Explorer panel. Visit Working With Test Explorer to read about the actions you can take within the Test Explorer panel.
先决条件
数据驱动测试的先决条件是 Orchestrator 版本等于或高于 2022.4
数据源
为数据变体配置数据源时,可以从以下选项中进行选择:
- File, if you want to use Excel files.
- Auto Generate, for test data that is automatically generated to cover as many paths as possible during execution.
- Data Service, if you use Data Service entities (Automation Cloud only).
- 已存储在项目中的“测试数据”文件夹中的任何类型数据的现有数据。
- Test Data Queue if you have configured a JSON schema and added a test data queue in Orchestrator.
管理测试数据
下表列出了您可以对包含数据变体的测试用例执行的操作。
| 操作 | 描述 | 程序 |
|---|---|---|
|
更新测试数据 |
通过选择创建新文件还是覆盖现有数据更新导入的测试数据。如果对 Excel 文件进行了任何更改,可以使用此操作。任何新列都将作为参数添加到测试用例中。 对于 Data Service 实体,您可以通过查询生成器使用新筛选器更新测试用例。 |
4.(可选)选择“使用相同的测试数据更新所有测试用例”以更新使用您当前正在编辑的测试数据的所有测试用例。 5. 单击“导入”以保存更改。 |
|
删除测试数据 |
从测试用例中删除测试数据。 |
|
|
修改测试数据 JSON 文件 |
直接将测试数据更新到 JSON 文件中。将测试数据添加到测试用例后,系统将创建文件。 |
|