c# - Visual Studio - 使用特定 TestCategory 值运行自动化测试方法

标签 c# visual-studio selenium azure-pipelines runsettings

在 Visual Studio Web 应用中,我在部署成功构建运行冒烟测试的环境后添加了一个任务。冒烟测试的 TestCategory 为“SmokeTest”。

我想要完成的是让任务仅运行测试类别为“SmokeTest”的测试方法。我读到我需要做的就是在“覆盖测试运行参数”字段中添加一些内容,但我不确定到底是什么。

其他信息:
-使用Visual Studio 2017社区
-使用 Selenium 框架和 C#

enter image description here

最佳答案

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

TestCategory=SmokeTest

enter image description here

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

关于c# - Visual Studio - 使用特定 TestCategory 值运行自动化测试方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48814368/

相关文章:

python - 抓取 : download files from url

c# - 如何为 WMI 查询设置超时?

c# - 如何在 WPF 中按名称查找样式触发器嵌入元素?

c# - 如何知道我的 linq 查询是否返回 null

windows - 为 Visual Studio 编译 FFMpeg 库

c++ - 不应该存在的随机未解析外部符号

java - 将焦点设置在 WebElement 上?

c# - 从 DataGridViewCell 获取数值?

c# - 为什么 Visual Studio 2010 在单步执行 C# 代码时以 C++ 模式进行 pretty-print ?

python - 单击不可见的元素(有 slider 的地方)