导出测试结果中的附件 [英] Exporting attachments in test results

查看:65
本文介绍了导出测试结果中的附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


下载测试用例中包含的附件​​的最佳方法是什么?我们一直包括测试运动员的附件。当我们导出测试套件并选择附件选项(测试套件>导出)时,导出不包括
附件。但是,如果附件是在执行后添加的(不是来自测试运行器) ,然后导出它们确实出现在导出中。此外,我们想知道如何一次导出测试套件中包含的所有附件。我们经常向客户发送截图
记录测试结果。


谢谢,


Sol


解决方案

Hi Sol,


感谢您在此处发帖。


默认导出功能无法从中导出附件测试结果(最新的测试结果),它只能导出为测试用例而不是测试运行添加的附件。但是在导出
期间选择"最新测试结果"时,它将导出测试结果链接。您可以通过链接找到附件。


实际上,您可以尝试通过REST API下载测试结果附件,请参阅

下载测试结果附件
以获取更多信息。


您还可以为此主题提供参考:
如何通过TFS Client Libaries for REST API获取测试运行附件列表?


此外,如果您使用的是TFS 2017 Update1或VSTS,则可以尝试使用扩展名

增强型导出PRO
,它可以导出测试步骤,测试结果,测试结果附件,共享步骤和参数。


最好的问候


Hi,

What's the best way to download attachments included in the test cases? We have been including attachments from the test runner. When we export the test suite and select the attachments option (Test Suite>Export), the export doesn't include the attachments. However, if the attachments are added after execution (not from test runner), and then export they do appear in the export. Also, we would like to know how to export all attachments included in a test suite at once. We often send screenshots documenting test results to client.

Thanks,

Sol

解决方案

Hi Sol,

Thank you for posting here.

The default export feature cannot export the attachment from test result (Latest test outcome), it just can export the attachments which added for test case but not test run. But it will export the test result link when select ‘latest test outcome’ during the exporting. You can find the attachments by the link.

Actually , you can try to download the test result attachments by REST API, please see Download a test result attachment for more information.

You can also have a reference for this thread: How to get the list of test run attachments via TFS Client Libaries for REST API?

In addition, if you are using TFS 2017 Update1 or VSTS, you can try the extension Enhanced Export PRO, it can export test steps, test results, test results attachments, shared steps and parameters.

Best Regards


这篇关于导出测试结果中的附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆