简体   繁体   English

无法通过 Azure Devops 发布管道执行 selenium 测试用例

[英]Not able to execute selenium test cases via Azure Devops release pipeline

I am trying to configure and run selenium test cases from Azure Devops Release pipeline.我正在尝试从 Azure Devops Release 管道配置和运行 selenium 测试用例。 I did configure Visual studio Test Platform installer followed by Visual studio test.我确实配置了 Visual Studio 测试平台安装程序,然后是 Visual Studio 测试。 However, while running the 'test task', its erroring out stating但是,在运行“测试任务”时,它出错了

2019-12-22T11:31:50.7602521Z ##[warning]No test sources found matching the given filter '**\*csproj'

Am I missing something here or not doing proper configuration?我是否在这里遗漏了什么或没有进行正确的配置?

My main test case is being written in .cs file and tried including it in path as well but still same error.我的主要测试用例写在 .cs 文件中,并尝试将其包含在路径中,但仍然出现相同的错误。

Can someone please guide me?有人可以指导我吗?

thanks, Pankaj谢谢,潘卡吉

You have to add the path to the assemblies - dll .您必须添加程序集的路径 - dll cs files are not used here as they are not compiled.此处不使用cs文件,因为它们未编译。 Provide the search pattern in the Test files field测试文件字段中提供搜索模式在此处输入图片说明 Example search pattern:示例搜索模式:

**\publish\Test.Project.Name.dll
!**\*TestAdapter.dll
!**\obj\**

Have you built your project?你的项目建好了吗? Since you said you can see only files which are .cs or .csproj.既然你说你只能看到 .cs 或 .csproj 的文件。 You should first build your project to generate .dll files which are used in your vstest test files.您应该首先构建您的项目以生成用于 vstest 测试文件的 .dll 文件。

You can add the Visual Studio Build Task above the Visual Studio Test Task, then choose your project(.csproj or .sln) in the Solution Tag.您可以在 Visual Studio 测试任务上方添加 Visual Studio 构建任务,然后在解决方案标签中选择您的项目(.csproj 或 .sln)。

在此处输入图片说明

After building, you will see the .dll files in your Artifact, then, as Jonah said, you need to specify the location of the .dll file in Test files.构建完成后,您将在 Artifact 中看到 .dll 文件,然后,正如 Jonah 所说,您需要在 Test files 中指定 .dll 文件的位置。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure DevOps 发布管道 - Azure Devops Release Pipeline Azure WebApp WebJobs with Azure DevOps Build and Release Pipeline with via.zip - Azure WebApp WebJobs with Azure DevOps Build and Release Pipeline with via .zip 如何在 Azure Devops Release 管道中执行下一阶段? - How to execute next stage in Azure Devops Release pipeline? 无法通过 powershell 脚本删除 azure 中的测试用例 - not able to delete test cases in azure devops through powershell scripts Azure Devops-发布流水线 - Azure Devops-release pipeline 如何在测试选项卡下的 Azure DevOps 发布管道中查看 Selenium Side runner 命令行 (selenium-side-runner) 测试套件结果 - How to view Selenium Side runner Command Line (selenium-side-runner) Test Suite results in Azure DevOps Release pipeline under the Test tab 无法使用 release Pipeline Azure Devops 运行位于远程客户端计算机上的 exe 和 powershell - Not able to run an exe , powershell located on remote client machine using release Pipeline Azure Devops Azure DevOps:在经典模式下使用 Release Pipeline 时,我无法将变量的值传递给其他任务 - Azure DevOps : while using Release Pipeline in classic mode, I'm not able to pass the value of a variable to other tasks Azure DevOps 动态发布管道创建 - Azure DevOps dynamic Release Pipeline creation 在 azure devops 中选择发布管道中的任务 - selection of task in release pipeline in azure devops
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM