VSTS中的Selenium屏幕截图(Azure DevOps) [英] Selenium screenshots in VSTS (Azure DevOps)

查看:113
本文介绍了VSTS中的Selenium屏幕截图(Azure DevOps)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据我的搜索,它应该正常工作". 是我找到的最好的文章.我已经按照步骤进行操作,但是在VSTS(Azure DevOps)界面中没有任何地方表明附有任何屏幕截图.

According to my searches, it should "just work". This is the best article I found. I've followed the steps, but nowhere in the VSTS (Azure DevOps) interface does it indicate there are any screenshots attached.

我正在私人托管的构建服务器上运行此程序,并且已经验证了以下内容:

I am running this on a privately hosted build server and I have verified the following:

  1. 正在创建屏幕快照并将其保存到磁盘
  2. 生成的TRX文件(我正在使用MSTEST框架)确实具有ResultFile引用(图像文件的路径)
  3. TRX文件已上传到VSTS,我可以下载它,并看到ResultFile仍在TRX中.

我不确定要使它正常工作所缺少的内容.任何帮助将不胜感激.

I'm not sure what I am missing in order to get this to work. Any help would be appreciated.

推荐答案

这是一个已知问题,Microsoft表示已解决,但在以后的更新中有待发布:

This is a known issue and Microsoft says it is fixed but pending release in a future update: Azure DevOps build test results missing attachments from tests

响应说明中的变通办法说使用选项重新运行失败的测试.

The work-around in the response notes says to use the option to Rerun failed tests.

这篇关于VSTS中的Selenium屏幕截图(Azure DevOps)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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