.net - 如何为 DevOps 启用屏幕录制?测试设置问题

标签 .net selenium devops recording

我正在尝试为我的本地环境以及在 Microsoft DevOps Pipelines 中的版本上运行设置屏幕录制。我一直在尝试几种可能会发生冲突的不同方法,但我们将不胜感激。

我被困在这里了: 我在测试设置中找不到“屏幕和语音录制”选项。

Location where I expected to find "Screen and voice recorder"

这是我的 .runsettings 文件。

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
    <DataCollectionRunSettings>
        <DataCollectors>
            <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="false"  xmlns="">
                        <ScreenCaptureVideo bitRate="512" frameRate="2" quality="20" />
                    </MediaRecorder>
                </Configuration>
            </DataCollector>
        </DataCollectors>
    </DataCollectionRunSettings>
</RunSettings>

我使用的资源: https://learn.microsoft.com/en-us/azure/devops/pipelines/test/ui-testing-considerations?view=azure-devops&tabs=mstest#capture-screenshot

https://github.com/Microsoft/vstest/issues/1959

最佳答案

为此,您需要 Visual Studio Professional/Enterprise。我已经升级了,现在可以完美地使用它。

关于.net - 如何为 DevOps 启用屏幕录制?测试设置问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69108430/

相关文章:

python - Selenium - 机器人框架 - Python - 页面不应包含元素不起作用

java - 如何在 HYBRIS 中只构建特定租户?

ubuntu - Dropbox API v2/删除

c# - 为什么 TimeoutException 不会对我的 channel 造成故障?

c# - Background Worker 被调用两次

python - 如何在 Python 中更改 Firefox Webdriver 的用户代理?

java - 如何使用 ReportNG 在 selenium webdriver 中截取失败测试的屏幕截图

.net - 您如何开始知道何时编写代码?

c# - 使用 C# webrequests 时如何在 wireshark 中解密 TLS 通信

devops - 使用 systemd 精确地每秒运行计时器