如何在 Azure DevOps 发布管道中保存测试结果 [英] How can I save testing results in Azure DevOps release pipeline
问题描述
在发布管道期间,我将启动 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 Release Management?
因此,如果您像这样压缩图像并上传它们,则压缩文件将作为日志文件的一部分出现.
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屋!