简体   繁体   English

自动化 WPF 应用程序

[英]Automating WPF application

How can we automate wpf application because in my organization I am using the application which opens through the link which we paste in the browser we don't have EXE file for that so it's getting very tedious task to automate that using selenium, can anyone help if you have any idea我们如何自动化 wpf 应用程序,因为在我的组织中,我正在使用通过我们粘贴在浏览器中的链接打开的应用程序,我们没有该应用程序的 EXE 文件,因此使用 selenium 自动化该应用程序变得非常繁琐,任何人都可以帮忙如果你有什么想法

I want to automate application which opens through URL but it's not web application.我想自动化通过 URL 打开的应用程序,但它不是 web 应用程序。

If there is a WPF application there should be an exe.如果有 WPF 应用程序,则应该有一个 exe。 May be your organization environment like when we paste URL on web it downloads the binaries(exe and dll's) at some location on your local machine and after that it is stating the WPF exe application.可能是您的组织环境,例如当我们将 URL 粘贴到 web 时,它会在您本地计算机的某个位置下载二进制文件(exe 和 dll),然后它会声明 WPF exe 应用程序。 In that case if you are a developer then when we build a project then all DLL and exe files found in bin\release folder.在那种情况下,如果您是开发人员,那么当我们构建项目时,所有 DLL 和 exe 文件都会在 bin\release 文件夹中找到。 you have to pickup these local files for automation instead of deployed environment.您必须选择这些本地文件以实现自动化而不是部署环境。

I have also faced same issue in my organization I build the WPF application on my local machine and I got the exe and DLL on it.我在我的组织中也遇到了同样的问题,我在本地计算机上构建了 WPF 应用程序,并在上面安装了 exe 和 DLL。
After that I did automation through WinAppDriver on it using Visual Studio with Unit Test Project.之后,我使用带有单元测试项目的 Visual Studio 通过 WinAppDriver 对其进行了自动化。

I'll give you sample application and steps to do the WPF application automation.我将为您提供示例应用程序和执行 WPF 应用程序自动化的步骤。

Visit below GitHub project to achieve WPF application automation.下面访问GitHub项目,实现WPF应用自动化。 https://github.com/sandeepjadhav75502/AutomationScriptDesktopApp https://github.com/sandeepjadhav75502/AutomationScriptDesktopApp

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

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