程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Visual Studio 2019,在 Azure Devops 上使用 runsettings 的 UI 测试视频捕获,wmv 0 字节大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决Visual studio 2019,在 Azure Devops 上使用 runsetTings 的 UI 测试视频捕获,wmv 0 字节?

开发过程中遇到Visual studio 2019,在 Azure Devops 上使用 runsetTings 的 UI 测试视频捕获,wmv 0 字节的问题如何解决?下面主要结合日常开发的经验,给出你关于Visual studio 2019,在 Azure Devops 上使用 runsetTings 的 UI 测试视频捕获,wmv 0 字节的解决方法建议,希望对你解决Visual studio 2019,在 Azure Devops 上使用 runsetTings 的 UI 测试视频捕获,wmv 0 字节有所启发或帮助;

有人从事视频拍摄工作吗?使用 runsetTings 文件,视频捕获在本地工作正常。但是,当我尝试在 Azure Devops 管道上运行 UI 测试用例时,它会在附件中创建 WMV 0 字节和 1 kb 的记录媒体.trmx。它没有在 wmv 文件中捕获任何数据。在 devops 管道上运行 UI 测试用例时,它仅在登录到代理时才捕获 wmv 的数据。有什么解决方案吗?

<DataCollector uri="datacollector://microsoft/VIDeoRecorder/1.0" 
assemblyQualifIEdname="Microsoft.Visualstudio.TestTools.DataCollection.VIDeoRecorder.VIDeoRecorderDataCollector,Microsoft.Visualstudio.TestTools.DataCollection.VIDeoRecorder,Version=15.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" 
frIEndlyname="Screen and Voice Recorder">

我尝试以两种不同的方式运行登录代理,另一种方式是不登录代理。它产生了两种不同的结果

登录到自托管代理,它创建了数据 2828 kb wmv 文件

Visual Studio 2019,在 Azure Devops 上使用 runsettings 的 UI 测试视频捕获,wmv 0 字节

未登录自托管代理并创建了 0KB wmv 文件

Visual Studio 2019,在 Azure Devops 上使用 runsettings 的 UI 测试视频捕获,wmv 0 字节

解决方法

如果您使用 Visual studio test 任务运行测试,则可以捕获测试视频并自动作为测试结果的附件提供。为此,您必须在 .runsetTings 文件中配置视频数据收集器,并且必须在任务设置中指定此文件。

<DataCollector uri="datacollector://microsoft/VideoRecorder/1.0" assemblyQualifiedName="Microsoft.Visualstudio.TestTools.DataCollection.VideoRecorder.VideoRecorderDataCollector,Microsoft.Visualstudio.TestTools.DataCollection.VideoRecorder,Version=15.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Screen and Voice Recorder">
        <!--Video data collector was introduced in Visual studio 2017 version 15.5 -->
        <Configuration>
          <!-- Set "sendRecordedMediaForPassedTESTCase" to "false" to add video attachments to failed tests only -->
          <MediaRecorder sendRecordedMediaForPassedTESTCase="true"  xmlns="">           
            <ScreenCaptureVideo bitRate="512" frameRate="2" quality="20" />
          </MediaRecorder>
        </Configuration>
</DataCollector>

Visual Studio 2019,在 Azure Devops 上使用 runsettings 的 UI 测试视频捕获,wmv 0 字节

此外,您必须将代理设置为作为进程而不是服务运行,您可以检查您的代理。

大佬总结

以上是大佬教程为你收集整理的Visual Studio 2019,在 Azure Devops 上使用 runsettings 的 UI 测试视频捕获,wmv 0 字节全部内容,希望文章能够帮你解决Visual Studio 2019,在 Azure Devops 上使用 runsettings 的 UI 测试视频捕获,wmv 0 字节所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。