1

我即将开始一个项目,以自动化涉及许多不同桌面应用程序的手动过程。我想知道是否有任何方法可以公开已经存在的接口并在我的应用程序中使用它们。大多数手动任务只涉及在现有应用程序中填写表格并按下按钮。我不确定这是否与解决方案相关,但这些任务有时需要几个小时才能运行。

因为我只会填写现有的表格,实际上不需要更改现有的应用程序,所以我宁愿不必对现有的应用程序做大量的工作。如果这样的事情似乎是一个很好的解决方案,请告诉我。

所以,我的主要问题是,自动化这个过程的最佳方法是什么?我应该将现有应用程序作为库导入吗?有没有办法以编程方式填写另一个程序的 WPF 或 Windows 窗体界面?

4

3 回答 3

2

Seems like you're looking for Coded UI Tests, or a tool such as Ranorex or Test Complete. More videos on Coded UI Tests available here. You usually have a possibility to record a scenario for your Windows Forms or WPF application (or even write the code manually), and later run/replay it automatically.

于 2013-06-04T21:10:44.073 回答
1

您可以使用 UI 测试自动化工具在现有应用程序中填写文本框,也可以在应用程序中实现通信。

对于 UI 测试自动化工具,请参阅其他答案。

对于通信框架,您可以使用以下之一:

于 2013-06-04T21:05:28.833 回答
0

AutoIT is a free scripting language was designed for this. That will let you throw values into an existing UI without making any changes to the application. There are a bunch of UI testing tools out there that could fulfill your needs as well (IE TestComplete), but most aren't free.

于 2013-06-04T21:10:14.650 回答