订阅

UiPath Studio

UiPath Studio 指南

数据驱动的测试

概述


数据驱动测试允许您测试 RPA 工作流和应用程序,以确保自动化可以处理多个场景。

数据源


为数据变体配置数据源时,可以从以下选项中进行选择:

管理测试数据


下表列出了您可以对包含数据变体的测试用例执行的操作。

ActionDescriptionProcedure
Update test dataUpdate the imported test data by choosing whether to create a new file or overwrite existing data. You can use this when you have made any changes to the Excel file. Any new columns will be added as arguments to the test case.

For Data Service entities, you can update the test case using new filter through the Query Builder.
1. Open Studio and navigate to your project.
2. In the Project panel, right-click a test case with data variations and select Update test data.
3. Select a data source from the Source dropdown list.

For Files (e.g., Excel), you need to browse for the file and select the Worksheet. You can select individual or all values from the file.

For Data Service, you need to select an entity.
For Test Data Queue, you need to select a test data queue.
4. (Optional) Select Update all test cases using the same test data to update all the test cases that use the test data that you are currently editing.
5. Click Import to save changes.

You can perform this action in Test Explorer by right-clicking a file, and then choosing Update Test Data.
Remove test dataRemove test data from the test case.1. Open Studio and navigate to your project.
2. In the Project panel, right-click a test case with data variations and select Remove test data.

You can perform this action in Test Explorer by right-clicking a file, and then choosing Remove Test Data.
Modify test data JSON fileUpdate test data directly into the JSON file. The file is created after adding test data to the test case.

Only for test data files.
1. Open Studio and navigate to your project.
2. Navigate to Project > Test Data and open the JSON file with a code editor.
The JSON file name is stored as ExcelName_SheetNo.json.

2 个月前更新

数据驱动的测试


建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。