简体   繁体   English

Azure DevOps Release 中的 UI selenium 测试

[英]UI selenium Test in Azure devops Release

I am trying to create a release pipeline with IIS deployment and after that, there is UI Selenium test project.我正在尝试使用 IIS 部署创建一个发布管道,然后是 UI Selenium 测试项目。

Everything is working fine except the file uploader.除了文件上传器外,一切正常。 How to handle file uploader?如何处理文件上传器? VSTS Agent is not allowing to get the file from the project folder. VSTS 代理不允许从项目文件夹中获取文件。 I tried to put the file in Sharepoint and get the stream from there and try to save in the project directory but still, it is not allowing to save file.我尝试将文件放入 Sharepoint 并从那里获取流并尝试保存在项目目录中,但仍然不允许保存文件。

var directory = Assembly.GetAssembly(typeof(HelperClass)).Location;
Console.WriteLine(directory); var newDir = 
directory.Replace("\\bin\\Release\\MarloTest.dll", "\\bin\\Release"); 
Console.WriteLine(newDir); 

if (Directory.Exists(newDir)) return newDir;

(var file= new FileStream(newPath, FileMode.Create)) 
{ 
   var streamFile = stream; streamFile.CopyTo(file); 
}

Thanks in Advance提前致谢

What agents are you using to fire your UI tests from your release pipeline?您使用什么代理从发布管道中触发 UI 测试? If its Hosted agent, I doubt it works.如果是托管代理,我怀疑它是否有效。 Try installing the agent of your own and trigger a release.尝试安装您自己的代理并触发发布。 For running Selenium UI tests, you can refer here .有关运行 Selenium UI 测试的信息,您可以参考此处

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

相关问题 没有 selenium 测试在 Azure DevOps 上执行 - No selenium test gets executed on Azure DevOps 将 Selenium 测试用例 java 与 Azure 集成时出错 - Getting error while integration Selenium test cases java with Azure devops 在 Azure Devops CI/CD 管道中使用 JAVA 运行自动化 Selenium Web 驱动程序 UI 测试 - Running automated Selenium web driver UI tests using JAVA in Azure Devops CI/CD pipelines 如何通过 Azure DevOps 管道 CI/CD 执行测试套件(Selenium Python)? - How to execute a test suite (Selenium Python) via Azure DevOps pipeline CI/CD? 是否可以在 Azure DevOps 中为已经部署在其他地方的我的网站运行 selenium webdriver 自动化测试? - Is it possible to run a selenium webdriver automated test in Azure DevOps for my website that is already deployed elsewhere? 在 Azure DevOps 中对失败的 NUnit Selenium 测试进行故障排除 - Troubleshoot failing NUnit Selenium tests in Azure DevOps 将 xunit 功能测试结果发布到 Azure devops - Publishing xunit functional test results to Azure devops Testdata回滚-UI上的Selenium测试 - Testdata rollback - Selenium test on UI 带有UI的Docker中的Selenium测试执行 - Selenium Test Execution in Docker with UI C#Selenium:为Selenium测试实现测试UI - C# Selenium: Implementing Test UI for Selenium Test
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM