自动化测试工具/库/框架的C ++图形用户界面的桌面应用程序的窗口 [英] Test automation tool/libraries/framework for C++ GUI desktop windows apps

查看:562
本文介绍了自动化测试工具/库/框架的C ++图形用户界面的桌面应用程序的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可惜的是我在Windows上运行的GUI桌面应用程序和使用Borland C ++编译器编译。我知道这是一个非常古老的技术,但是这就是生活。在我工作的公司有很多QTP的免费许可证。不过说实话,我不喜欢这个工具,我想用一些开源替代品来改变它。

unfortunatelly I have a GUI desktop application running on Windows and compiled using Borland C++ compiler. I know it's a very old technology, but that's the life. The company I work for have lots of free licences for QTP. But to be honest I don't like this tool and I want to change it with some open source alternative.

我使用Selenium自动化Web服务的的experiance,有的Java Swing的小程序。
我创建基于Java / JUnit的我的测试。我想知道如果我可以在Java中创建一些测试来测试我的C ++应用程序 - 这将是巨大的。如果这是不可能的,如果我可以使用任何C / C ++库,创建自己的测试框架。

I have an experiance with automation Web services using Selenium, and some java swing applets. I created my tests based on Java/JUnit. I'm wondering if I can create some tests in Java to test my C++ application - that would be great. If that's not possible if I can use any C/C++ libraries to create my own test framework.

这不应该是单元测试。我想创建,而一套功能测试。
我希望能够像定位按钮,表格,细胞等对象,执行如单击,改变聚焦等动作。

That shouldn't be unit tests. I want to create rather a suite of functional tests. I want to be able to localize objects like buttons, tables, cells, etc., perform action like clicking, changing focus, etc.

此外,我有机会获得源代码。但是,这是一个相当古老的面条code和我没有与C ++应用程序多的experiance。

In addition I have access to source. But this is rather an old spaghetti code and I don't have much experiance with C++ apps.

你有什么建议?

推荐答案

我们使用 Sikuli ,并已与很高兴它。它的工作原理的各种自动化的API外,使它处理非标准的用户界面非常好。

We use Sikuli and have been quite happy with it. It works outside of the various automation APIs so it handles non-standard UIs very well.

这篇关于自动化测试工具/库/框架的C ++图形用户界面的桌面应用程序的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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