我如何获得Azure DevOps API调用的testcaseresultid
我有一个带有所有Azure DevOps API呼吁“测试”的Postman Collection设置。我注意到,许多API都需要在端点中需要“ testcaseresultid”。我不知道如何获得此ID。我看了所有的回复,但我看不到它返回的地方。有人可以帮忙吗?我有11个需要这个的电话。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要获取
testCaseresultid
的值,您可以尝试以下方式:使用REST API“ 结果 - 列表 “列出测试运行的所有测试结果。从响应主体中,您可以看到
testcaseresultid
在指定的测试运行中结果。查看
testcaseresultid
从Azure DevOps的网页中。在测试运行的项目中,导航到'测试计划'> '运行'。查找测试运行,然后单击以打开它。选择'测试结果'选项卡,您可以看到此运行中执行的所有测试用例的结果。单击一个测试案例结果以打开它。在Web浏览器的地址栏上,您可以看到此测试案例结果的完整URL。在URL中,您可以看到testcaseresultid
。To get the value of a
testCaseResultId
, you can try with the following ways: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.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 thetestCaseResultId
is contained.