概述
在本主题中,您可以学习如何管理测试执行。测试执行是在特定时间点执行任何相应测试集的不可更改的记录。相比之下,测试集始终会发生更改,因为它可以针对不同的应用程序版本,并且其测试用例也可以修改。

重新执行测试集
您可以在上次运行后重新执行测试集。新的测试用例结果将覆盖“测试执行”页面上显示的之前的结果。
- 登录到 Orchestrator。
- 打开文件夹。
- 导航到“测试”>“测试执行”。
- 选择一个测试运行,然后转到“更多操作”>“详细信息”。
- 选择一个测试用例,然后转到“更多操作”>“重新执行”。
- 配置执行目标:
- 用户:从下拉列表中选择分配给该特定文件夹的用户。默认设置为“任何用户”。
- 计算机:从下拉列表中选择计算机资源。
注意
对于传统文件夹,您需要选择环境,然后选择是要动态分配执行还是分配给特定机器人。
- (可选)为测试用例定义自定义参数,以覆盖测试集级别的默认值。要定义参数,您需要发布包含参数的包。
- 单击“执行”以确认。
测试执行覆盖率
You can view information on the activities that have been covered during a test execution. This option is also available in Studio, as Activity Coverage.
重要
当您为现有或新的测试集选择此选项时,活动覆盖率计算器可用。有关更多信息,请参见创建测试集。
- 在 Orchestrator 中打开您的文件夹。
- 导航到“测试”>“测试执行”。
- 选择一个测试运行,然后转到“更多操作”>“详细信息”。
- 转到“覆盖率”选项卡,以查看覆盖率详细信息。
覆盖率文件将上传到“附件”选项卡。

分析测试执行
您可以分析测试执行,以了解在执行失败或卡住的情况下发生了什么。
注意
您可以通过导航到“自动化”>“作业”>“作业详细信息”来查看失败的测试执行的屏幕截图。要使用此功能,您需要在应用程序级别启用执行介质。有关更多信息,请参见执行介质权限。

您可以从以下操作中选择检查测试运行所用的操作。
Actions | Description | Procedure |
---|---|---|
Execution details | View Robot details, including execution attachments, data variation and screenshots. Make sure that you have Execution Media Permissions. | 1. Open your folder in Orchestrator. 2. Navigate to Testing > Test Executions. 3. Select a test run and go to More Actions > Details 4. Click Details to view the execution details. |
View assertions | View failed or passed assertions. | 1. Open your folder in Orchestrator. 2. Navigate to Testing > Test Executions. 3. Select a test run and go to More actions > Details. 4. Select a test case and go to More actions > View assertions. |
View logs | View and export a detailed log of execution events. | 1. Open your folder in Orchestrator. 2. Navigate to Testing > Test Executions. 3. Select a test run and go to More actions > Details. 4. Select a test case and go to More details > View logs. 5. Click Export to get the test execution details in a CSV format. |
测试执行 API
To query for item related activities, you can use the Background Tasks, internally available through API. For more information on Orchestrator Permissions, see About Roles. For more information on test automation API, see Test Automation API Permissions.
大约一年前更新