Azure DevOps运行结果步骤并运行摘要详细信息附件API
我正在尝试获取测试运行结果步骤和测试运行结果摘要详细信息的附件,但无法找到与该API有关的任何API
我正在附加矩形1下方的图像是测试运行结果步骤的刺激,而Rectangele 2是测试运行结果的附件摘要摘要
If anyone have any knowledge about these perticular apis please let me know.
我已经检查了 azure api文档,但如果我错过了特定的API请让我知道。 谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过调用获取测试结果附件 REST API,我们可以获取附件的所有ID:
此后,如果您想获得附件,则可以调用附件 - 获取测试结果附件zip 与特定
附件ID
REST API。请注意,REST API 附件 - 获取测试结果附件zip 将显示附件的上下文,而不是直接下载附件。如果要下载附件,则可以编写脚本以将其保存到本地目录。以下供您参考的powerShell脚本:
更新:
,但是获取测试结果附件 REST API只能从测试运行UI中获取附件(通过单击附加附件)
添加附件
按钮)。要获取测试运行结果步骤和测试结果摘要的附件,我们可以调用结果 - get 带有参数
defoce> detail stoinclude = iterations
添加添加:之后,我们可以通过其ID下载附件。以下powershell脚本供您参考以在循环中下载它们:
By calling the Get Test Result Attachments REST API, we can get all the IDs of the attachments:
After that, if you want to get the attachments you can call Attachments - Get Test Result Attachment Zip REST API with the specific
Attachment ID
.Please note that the REST API Attachments - Get Test Result Attachment Zip will display the context of the attachments instead of download the attachments directly. If you want to download the attachments, you can write a script to save them to a local directory. The following PowerShell script for your reference:
UPDATE:
However the Get Test Result Attachments REST API can only get the attachments attached from the test run UI (attached by clicking the
Add attachment
button).To get the attachments of the Test Run Result steps and Test Run Result Summary, we can call Results - Get REST API with parameter
detailsToInclude=iterations
added:After that we can download the attachments by their ID. The following PowerShell script for your reference to download them in a loop: