UI自动化课程简介
Microsoft UI Automation(UI自动化)是一个辅助功能框架,使Windows应用程序能够提供和使用有关用户界面(UI)的编程信息。它提供对桌面上大多数UI元素的编程访问。它使屏幕阅读器等辅助技术产品能够向最终用户提供有关UI的信息,并通过标准输入以外的方式操作UI。UI自动化还允许自动化测试脚本与UI交互。
# 适用场景
通过使用UI Automation和遵循无障碍设计实践,开发人员可以让许多视力、听力或运动障碍的人更容易访问在Windows上运行的应用程序。此外,UI Automation专门设计用于为自动化测试场景提供强大的功能。
# 开发人员受众
UI Automation是为有经验的C/C++开发人员设计的。一般来说,开发人员需要对组件对象模型(COM)对象和接口、Unicode和Windows API编程有一定程度的了解。
有关托管代码的UI自动化的信息,请参阅MSDN的.NET Framework开发人员指南部分中的辅助功能 (opens new window)。
# 运行时要求
以下操作系统支持UI Automation: Windows XP、Windows Server 2003、Windows Server 2003R2、Windows Vista、Windows 7、Windows 10、Windows Server 2008、Windows Server 2008R2、Windows Server 2012、Windows Server 2012R2、Windows Server2016和Windows Server 2019。
Notes: Windows XP和Windows Server 2003也需要Microsoft.NET Framework 3.0。
# 支持底层操作系统
Windows Vista平台更新是一组运行时库,使开发人员能够将应用程序定位到Windows 7和下层操作系统。Windows Server 2008平台更新是一组运行时库,使开发人员能够将应用程序定位到Windows Server 2008 R2和以前版本的Windows Server。Windows Vista平台更新和Windows Server 2008平台更新将通过Windows Update提供给所有Windows Vista和Windows Server 08客户。需要Windows Vista平台更新或Windows Server 2008平台更新的第三方应用程序可以让Windows Update检测是否已安装;如果不是,Windows Update将在后台下载并安装它。
适用于Windows Vista的平台更新和适用于Windows Server 2008的平台更新都支持以下操作系统上的整个Windows Automation API 3.0功能集。
- Windows XP (English)
- Windows XP Home SP3 x86
- Windows XP Professional SP3 x86
- Windows Server 2003 (English)
- Windows Server 2003 SP2 (x86 and x64)
- Windows Vista (English)
- Starter SP2 (x86 and x64)
- Home Premium SP2 (x86 and x64)
- Business SP2 (x86 and x64)
- Enterprise SP2 (x86 and x64)
- Ultimate SP2 (x86 and x64)
- Windows Server 2008 (English)
- Windows Server 2008 SP2 (x86 and x64)
有关这两个更新的详细信息,请参阅Windows Vista平台更新 (opens new window)。