如何在Azure DevOps发布管道中保存测试结果 [英] How can I save testing results in Azure DevOps release pipeline

查看:159
本文介绍了如何在Azure DevOps发布管道中保存测试结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在发布管道中,我正在启动Selenium测试.这些测试在失败的情况下会生成屏幕截图.我正在寻找一种上传它们的方式,以便可以浏览它们并检查出了什么问题.

During the release pipeline I'm launching Selenium tests. Those tests, in case of fail, make screenshots. I'm looking for a way to upload them so I could look through them and check what went wrong.

我设法将它们压缩,但不幸的是,所有上传方法都无法在发布管道上运行.

I manage to zip them, but unfortunately none of the upload methods are working on release pipeline.

是否有一种在发布管道中保存/上传文件的方法?

Is there a way to save/upload files during release pipeline?

推荐答案

这是我发现有用的旧答案:

Here's and old answer I've found useful:

您如何将文件作为发行版的一部分发布回VSTS发行管理?

因此,如果您压缩图像并像这样上传它们,则zipfile会显示为日志文件的一部分.

So if you zip the images and upload them like this, the zipfile appears as a part of logfiles.

在旁注中,我认为您可以探索这些方法以获得更多选择:

On a sidenote, I think you can explore these for more options:

https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md

这篇关于如何在Azure DevOps发布管道中保存测试结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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