Qt 自动化测试

Qt automated testing(Qt 自动化测试)

本文介绍了Qt 自动化测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.automatedqa.com/products/testcomplete/testing-qt-apps/

他们怎么能做到这一点?有 Qt 检查库吗?标准窗口间谍工具在某些领域有效,但其他重要领域(例如列表视图中的列表项)无法通过 Windows 消息进行检查.

How would they have been able to do that? Is there a Qt inspection library? Standard window spy tools work in some areas, but other important areas (such as list items in a list view) are not inspectable through Windows messages.

我知道有 QtTest 框架,但我想要的是可以访问整个应用程序的东西,以便我可以进行自动化集成测试.

I know there's the QtTest framework, but what I'd like is something that can access an application as a whole so that I can have automated integration testing.

推荐答案

找到答案:http://www.ranorex.com/support/user-guide-20/qt-accessible-plugin.html

http://doc.qt.io/archives/4.3/accessible.html

正是自动化 UI 所需要的.然后将与任何 UI 自动化软件一起使用,我现在了解到这些软件显然使用了辅助功能 API.

Exactly what is needed to automate a UI. Will then work with any UI automation software, which I've now learned apparently uses the accessibility API.

这篇关于Qt 自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Qt 自动化测试

基础教程推荐