简体   繁体   English

如何在 Azure DevOps 发布管道中保存测试结果

[英]How can I save testing results in Azure DevOps release pipeline

During the release pipeline I'm launching Selenium tests.在发布管道期间,我将启动 Selenium 测试。 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.我设法对它们进行了 zip,但不幸的是,没有一种上传方法适用于发布管道。

使用的任务

Is there a way to save/upload files during release pipeline?有没有办法在发布管道期间保存/上传文件?

Here's and old answer I've found useful:这是我发现有用的旧答案:

How do you publish files back to VSTS Release Management as part of a release? 作为发布的一部分,您如何将文件发布回 VSTS 发布管理?

So if you zip the images and upload them like this, the zipfile appears as a part of logfiles.因此,如果您 zip 图像并像这样上传它们,则 zip 文件将显示为日志文件的一部分。

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 https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM