AzDo:从多个测试运行中导出测试结果
AzDo: Exporting test results from multiple test runs
我需要跨多个测试 运行 的单个测试(所有测试)的测试结果详细信息数据以进行自定义分析。
有没有一种方法可以将这些数据从 AzDo 中导出,而无需单独进行每个测试 运行 并从每个 运行 中单独下载多个 trx 文件?
Is there a way to export this data out of AzDo without going into each test run individually and downloading multiple trx files separately from each run?
据我所知,UI页面上没有这种方式可以满足您的要求。
根据我的测试,当我运行在测试运行自动测试获取测试附件(.trx文件)时,它似乎不支持从多个下载多个附件一次测试 运行s。
这里有两种下载附件的方法:
- 您可以导航到目标测试 运行 并手动下载测试 运行 附件。
更新:
- 您可以使用 Rest API 下载测试 运行 附件。
休息Api步数:
第 1 步:您需要在测试 运行 页面中获取 Test Run ID
。
第 2 步:运行 这个休息 API:Attachments - Get Test Run Attachments。然后你可以得到他 attachment id
.
GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/attachments?api-version=5.1-preview.1
Step3:运行这个休息API:Attachments - Get Test Run Attachment Zip。可以直接下载附件。
GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/attachments/{attachmentId}?api-version=5.1-preview.1
我需要跨多个测试 运行 的单个测试(所有测试)的测试结果详细信息数据以进行自定义分析。
有没有一种方法可以将这些数据从 AzDo 中导出,而无需单独进行每个测试 运行 并从每个 运行 中单独下载多个 trx 文件?
Is there a way to export this data out of AzDo without going into each test run individually and downloading multiple trx files separately from each run?
据我所知,UI页面上没有这种方式可以满足您的要求。
根据我的测试,当我运行在测试运行自动测试获取测试附件(.trx文件)时,它似乎不支持从多个下载多个附件一次测试 运行s。
这里有两种下载附件的方法:
- 您可以导航到目标测试 运行 并手动下载测试 运行 附件。
更新:
- 您可以使用 Rest API 下载测试 运行 附件。
休息Api步数:
第 1 步:您需要在测试 运行 页面中获取 Test Run ID
。
第 2 步:运行 这个休息 API:Attachments - Get Test Run Attachments。然后你可以得到他 attachment id
.
GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/attachments?api-version=5.1-preview.1
Step3:运行这个休息API:Attachments - Get Test Run Attachment Zip。可以直接下载附件。
GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/attachments/{attachmentId}?api-version=5.1-preview.1