TestComplete支持MSAA可以简化UI自动化测试

2024-03-26 06:08

本文主要是介绍TestComplete支持MSAA可以简化UI自动化测试,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Falafel.com 上有个视频介绍如何利用 TestComplete MSAA 支持简化 UI 自动化测试,例如视频中所演示的 Windows 添加移除程序的测试:

 

TestComplete support for MSAA can ease UI automation

In this video we take a look at leveraging TestComplete’s support for MSAA to help testing a UI that’s familiar to all Windows users, the Add Remove Programs window. MSAA support can be useful against applications that make use of owner drawn controls which is how most grid controls work.

 

 

Microsoft Active Accessibility (MSAA) is a technology that lets the applications provide information about its user interface to other technologies, such as screen readers. Information about the application’s UI elements is exposed via the special IAccessible interface. This interface provides information about the type of the underlying control, its name, location and current state, and provides methods for manipulating that control. In this way, Active Accessibility can also be used in functional (or user interface) testing.

 

TestComplete includes the MSAA Open Applications plug-in that provides extended support for applications that contain accessibility information. This plug-in makes TestComplete an accessibility client, that is, TestComplete uses properties and methods of the IAccessible interface to obtain information about windows and controls in the tested application.

You can use the TestComplete’s support for Active Accessibility for the following purposes:

·         Expose information about custom controls in applications . Many applications use custom or owner-drawn controls, which do not behave like standard Windows controls, and thus TestComplete’s may not recognize them. Examples of such applications are those created with Adobe Flash, Microsoft FoxPro, Sybase PowerBuilder and other development tools. However, development tools can automatically include accessibility information in applications, and it is also possible to manually implement IAccessible in an application. This way, interaction with applications’ windows and controls are possible with the TestComplete’s MSAA engine.

·         Test applications for accessibility . For example, you could test whether the object have correct accessible names and roles specified, whether the controls’ default action executes correctly, and so on.

 

 

 

关于 MSAA 的介绍:

http://en.wikipedia.org/wiki/Microsoft_Active_Accessibility

 

Microsoft Active Accessibility (MSAA ) is an Application Programming Interface (API) for user interface accessibility. MSAA was introduced as a platform add-on to Microsoft Windows 95 in 1997. MSAA is designed to help Assistive Technology (AT) products interact with standard and custom user interface (UI) elements of an application (or the operating system), as well as to access, identify, and manipulate an application's UI elements. AT products work with MSAA enabled applications in order to provide better access for individuals who have physical or cognitive difficulties, impairments, or disabilities. Some examples of AT products are screen readers for users with limited sight, on screen keyboards for users with limited physical access, or narrators for users with limited hearing. MSAA can also be used for automated testing tools, and computer-based training applications.

The current and latest specification of MSAA is found in part of Microsoft UI Automation Community Promise Specification.

 

 

 

 

这篇关于TestComplete支持MSAA可以简化UI自动化测试的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/847502

相关文章

详解如何使用Python构建从数据到文档的自动化工作流

《详解如何使用Python构建从数据到文档的自动化工作流》这篇文章将通过真实工作场景拆解,为大家展示如何用Python构建自动化工作流,让工具代替人力完成这些数字苦力活,感兴趣的小伙伴可以跟随小编一起... 目录一、Excel处理:从数据搬运工到智能分析师二、PDF处理:文档工厂的智能生产线三、邮件自动化:

Python实现自动化Word文档样式复制与内容生成

《Python实现自动化Word文档样式复制与内容生成》在办公自动化领域,高效处理Word文档的样式和内容复制是一个常见需求,本文将展示如何利用Python的python-docx库实现... 目录一、为什么需要自动化 Word 文档处理二、核心功能实现:样式与表格的深度复制1. 表格复制(含样式与内容)2

pytest+allure环境搭建+自动化实践过程

《pytest+allure环境搭建+自动化实践过程》:本文主要介绍pytest+allure环境搭建+自动化实践过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录一、pytest下载安装1.1、安装pytest1.2、检测是否安装成功二、allure下载安装2.

VS配置好Qt环境之后但无法打开ui界面的问题解决

《VS配置好Qt环境之后但无法打开ui界面的问题解决》本文主要介绍了VS配置好Qt环境之后但无法打开ui界面的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要... 目UKeLvb录找到Qt安装目录中designer.UKeLvBexe的路径找到vs中的解决方案资源

如何基于Python开发一个微信自动化工具

《如何基于Python开发一个微信自动化工具》在当今数字化办公场景中,自动化工具已成为提升工作效率的利器,本文将深入剖析一个基于Python的微信自动化工具开发全过程,有需要的小伙伴可以了解下... 目录概述功能全景1. 核心功能模块2. 特色功能效果展示1. 主界面概览2. 定时任务配置3. 操作日志演示

python多线程并发测试过程

《python多线程并发测试过程》:本文主要介绍python多线程并发测试过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、并发与并行?二、同步与异步的概念?三、线程与进程的区别?需求1:多线程执行不同任务需求2:多线程执行相同任务总结一、并发与并行?1、

Python使用python-docx实现自动化处理Word文档

《Python使用python-docx实现自动化处理Word文档》这篇文章主要为大家展示了Python如何通过代码实现段落样式复制,HTML表格转Word表格以及动态生成可定制化模板的功能,感兴趣的... 目录一、引言二、核心功能模块解析1. 段落样式与图片复制2. html表格转Word表格3. 模板生

QT6中绘制UI的两种方法详解与示例代码

《QT6中绘制UI的两种方法详解与示例代码》Qt6提供了两种主要的UI绘制技术:​​QML(QtMeta-ObjectLanguage)​​和​​C++Widgets​​,这两种技术各有优势,适用于不... 目录一、QML 技术详解1.1 QML 简介1.2 QML 的核心概念1.3 QML 示例:简单按钮

使用Python自动化生成PPT并结合LLM生成内容的代码解析

《使用Python自动化生成PPT并结合LLM生成内容的代码解析》PowerPoint是常用的文档工具,但手动设计和排版耗时耗力,本文将展示如何通过Python自动化提取PPT样式并生成新PPT,同时... 目录核心代码解析1. 提取 PPT 样式到 jsON关键步骤:代码片段:2. 应用 JSON 样式到

在 PyQt 加载 UI 三种常见方法

《在PyQt加载UI三种常见方法》在PyQt中,加载UI文件通常指的是使用QtDesigner设计的.ui文件,并将其转换为Python代码,以便在PyQt应用程序中使用,这篇文章给大家介绍在... 目录方法一:使用 uic 模块动态加载 (不推荐用于大型项目)方法二:将 UI 文件编译为 python 模