简体   繁体   English

使用编码 UI 的无头 UI 自动化测试

[英]Headless UI Automation Testing Using Coded UI

As a beginner , I'm researching towards whether is it possible to run automated test scripts of Coded UI in Headless mode for Azure DevOps CI/CD pipeline.作为初学者,我正在研究是否可以在无头模式下为Azure DevOps CI/CD管道运行编码 UI 的自动化测试脚本。

My intention is to automate UI of Desktop Applications.我的目的是自动化桌面应用程序的 UI。 Along with this, I have concerned about MS Winapp Driver as well but it was concluded that, Coded UI is the ideal tool for my objective.与此同时,我也关注MS Winapp Driver ,但得出的结论是,编码 UI 是实现我的目标的理想工具。

Researches Done:完成的研究:

1.) Created a Coded UI project and run a test scenario through Visual Studio - Successful 1.) 创建了一个编码的 UI 项目并通过 Visual Studio 运行测试场景 - 成功

2.) Run the same scenario (C# file) using command prompt (using MSTest switches) - Successful 2.) 使用命令提示符(使用 MSTest 开关)运行相同的场景(C# 文件) - 成功

It will be highly appreciable, if one can come up with some best solution(s) or sample project.如果可以提出一些最佳解决方案或示例项目,那将是非常值得赞赏的。

According to this link( UI testing considerations ), you can not use Headless for Desktop app.根据此链接( UI 测试注意事项),您不能使用 Headless for Desktop 应用程序。

if you are running UI tests for desktop apps, Windows agents must be configured to run as an interactive process with auto-logon enabled如果您正在为桌面应用程序运行 UI 测试,则必须将 Windows 代理配置为作为启用自动登录的交互式进程运行

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM