[英]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.