我如何获得Azure DevOps API调用的testcaseresultid

发布于 2025-01-21 10:07:50 字数 693 浏览 5 评论 0原文

我有一个带有所有Azure DevOps API呼吁“测试”的Postman Collection设置。我注意到,许多API都需要在端点中需要“ testcaseresultid”。我不知道如何获得此ID。我看了所有的回复,但我看不到它返回的地方。有人可以帮忙吗?我有11个需要这个的电话。

前任。获取 https://dev.azure.com/ {abryvis}/{project}/{project}/_apis/_apis/test/test/test/test/runs/runs/runs/ {runId}/result/{** testcaseresultid **}/iterations/{iterationId}/action resresults/{actionpath}?api-version = 5.0

I have a postman collection setup with all of the Azure DevOps API calls for "Tests". I notice that a lot of the API calls you need the "testCaseResultId" in the endpoint. I don't know how to get this id. I've looked at all of the responses and I don't see where it returns this. Could someone please help!? I have 11 calls that need this.

Ex. GET https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/Results/{**testCaseResultId**}/Iterations/{iterationId}/actionresults/{actionPath}?api-version=5.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

太阳公公是暖光 2025-01-28 10:07:50

要获取 testCaseresultid 的值,您可以尝试以下方式:

  1. 使用REST API“ 结果 - 列表 “列出测试运行的所有测试结果。从响应主体中,您可以看到 testcaseresultid 在指定的测试运行中结果。


    “在此处输入图像描述”

  2. 查看 testcaseresultid 从Azure DevOps的网页中。在测试运行的项目中,导航到'测试计划'> '运行'。查找测试运行,然后单击以打开它。选择'测试结果'选项卡,您可以看到此运行中执行的所有测试用例的结果。单击一个测试案例结果以打开它。在Web浏览器的地址栏上,您可以看到此测试案例结果的完整URL。在URL中,您可以看到 testcaseresultid

    “在此处输入图像描述”

To get the value of a testCaseResultId, you can try with the following ways:

  1. Use the REST API "Results - List" to list all the test results for a test run. From response body, you can see the testCaseResultId of each test results in the specified test run.

    enter image description here

  2. View the testCaseResultId from the web page of Azure DevOps. In the project where the test run is in, navigate to 'Test Plans' > 'Runs'. Find the test run and click to open it. Select 'Test results' tab, you can see the results of all the test cases executed in this run. Click one test case result to open it. On the address bar of the web browser, you can see the complete URL of this test case result. In the URL, you can see the testCaseResultId is contained.

    enter image description here

    enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文