Visual Studio - 运行 具有特定 TestCategory 值的自动化 TestMethods

Visual Studio - Run Automated TestMethods with a specific TestCategory value

在 Visual Studio 网络应用程序中,我在部署成功构建环境后添加一个任务到 运行 冒烟测试。冒烟测试的 TestCategory 为 'SmokeTest'.

我想要完成的是只让任务 运行 具有 "SmokeTest" 的 TestCategory 的 TestMethods。我读到我需要做的是在 'Override test run parameters' 字段中添加一些内容,但我不确定具体是什么。

附加信息:
-使用 Visual Studio 2017 社区
-使用带 C# 的 Selenium 框架

您需要找到测试筛选条件字段并输入以下内容。

TestCategory=SmokeTest

来源:https://blogs.msdn.microsoft.com/devops/2015/09/04/supplying-run-time-parameters-to-tests/