针对基于MFC的GUI App的免费自动化测试工具 [英] Free automated Testing tools for MFC based GUI App

查看:287
本文介绍了针对基于MFC的GUI App的免费自动化测试工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Windows开发和测试平台的完全新手.我正在研究基于MFC的旧版GUI应用程序,并正在寻找有助于UI自动化测试的工具.当我搜索时,出现了很多工具,但是其中大多数似乎都不支持MFC.

I am a complete newbie to Windows development and test platforms. I am working on a legacy MFC based GUI application and looking for tools that would help with automated testing of the UI. A whole bunch of tools came up when I searched but most of them don't seem to support MFC.

我考虑的选择是: 一种.编码的UI/UI自动化-看起来很合适,但Visual Studio Professional 2012(我的开发环境)不支持它. b. Google测试-不支持MFC吗? (如果没有其他建议,请共享任何指针) C. TestStack White-构建在Codeed UI之上的开源工具,但似乎不再受到积极支持.在当前版本上找不到任何文档,或者仍在积极支持该文档. d.开发我自己的TestInterface并按以下说明修改现有的View/Window类: http://www.drdobbs.com/testing/dont-develop-gui-tests-teach-your-app-to/240168468 .目前不支持这种重大更改,并且想尝试一些至少可以使基本功能实现自动化的工具.

The options I considered were: a. Coded UI/ UI Automation - Seems like a good fit but not supported in Visual Studio Professional 2012 (which is my dev env). b. Google test - no MFC support ? (Pls share any pointers if you think otherwise) c. TestStack White - The open source tool built on top of Coded UI but doesn't seem to be actively supported anymore. Couldn't find any documentation on current version or if it is still actively supported. d. Develop my own TestInterface and modify the existing View/Window classes as described here: http://www.drdobbs.com/testing/dont-develop-gui-tests-teach-your-app-to/240168468 . Not in favor of such a major change at the moment and would like to try some tool which can at least automate the basic features.

您能否与这些或其他工具一起测试MFC应用程序分享您的经验.

Could you pls share your experience with any of these or other tools for testing MFC apps.

PS:我确实看到过其他帖子,例如可以通过google test测试的MFC gui?一个>,但没有得到我一直在寻找的答案.我正在寻找自动化的工具的纯粹视觉方面,并且功能逻辑已经很好地涵盖了.

PS: I did see other posts like MFC gui testable with google test? but didn't get the answers I was looking for. It is the purely visual aspects of the tool that I am looking for automation and the functional logic is already well covered.

提前谢谢! VeeAaaKay

Thanks in advance! VeeAaaKay

推荐答案

我们将 pywinauto 用于MFC-基于我们公司的应用程序.这是最好的选择,因为该接口是非常pythonic的.它不能处理WPF,但是MFC现在确实是核心案例.我正在StackOverflow上监视 pywinauto标签.随时在这里提问或将问题提交到GitHub存储库.我是pywinauto维护者之一.

We use pywinauto for MFC-based applications in our company. It's the best choice because the interface is very pythonic. It cannot deal with WPF, but MFC is really core case now. I'm monitoring pywinauto tag at the StackOverflow. Feel free to ask questions here or submit issues to GitHub repo. I'm one of pywinauto maintainers.

还有pywinauto的GUI帮助程序: SWAPY .它可以查看控件的层次结构,甚至可以使用简单的代码生成器.

There is also GUI helper for pywinauto: SWAPY. It can view controls hierarchy and even simple code generator is available.

这篇关于针对基于MFC的GUI App的免费自动化测试工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆