Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

desktop-test-strategy-reference

БесплатноБез исполняемых скриптовНе проверен

Use for any question about how to test or automate a desktop GUI app on Windows, macOS or Linux, including which tool to pick for WPF, WinForms, Qt or…

testlandот testland★ 18 звёзд на GitHub

Об этом скилле

desktop-test-strategy-reference

Overview

Desktop GUI testing is fragmented along two axes: operating system (Windows / macOS / Linux) and UI toolkit (native, Electron, Qt, GTK, Cocoa, WPF, WinUI, Win32). Unlike the web - where a single DOM-driving tool (Playwright / Selenium) covers every browser - each desktop OS exposes its own accessibility tree, and that tree is the substrate every reliable desktop test driver uses.

Per Microsoft Learn - UI Automation Win32 overview:

"Microsoft UI Automation is an accessibility framework that enables Windows applications to provide and consume programmatic information about user interfaces (UIs). … UI Automation also allows automated test scripts to interact with the UI."

Per Apple - Testing with Xcode, UI Testing chapter:

"UI Testing rests upon two core technologies: the XCTest framework and Accessibility."

Per the at-spi2-core project:

"Base DBus XML interfaces for accessibility, the accessibility registry daemon, and atspi library."

This skill is a pure reference consumed by the per-tool skills below and by anyone choosing a desktop test stack.

How to use this reference

  1. Pick OS + toolkit from the per-OS / per-toolkit decision matrix.
  2. Choose stable locators for that backend from the locator-strategy table.
  3. Apply the matching async-wait primitive for the OS (XCTest waiters / FlaUI Retry / AT-SPI polling) - see references/async-waits-and-concurrency.md.
  4. Pre-handle the OS elevation hazard (UAC / TCC / AT-SPI) before it blocks the run - see references/platform-hazards-and-dpi.md.

When to use

  • Starting a new desktop test program - which OS + toolkit needs which driver?
  • Auditing an existing desktop test suite - is the right backend in use, or is the suite working around a wrong-tool fit?
  • Cross-platform desktop app (Electron, Qt, .NET MAUI) - which test tools cover which platforms?
  • Onboarding a tester from web E2E - what's the mental-model difference between DOM-driving and accessibility-tree-driving?

The three OS backends

Every reliable desktop driver routes through one of three OS-native accessibility trees. Direct pixel / coordinate scripting (SikuliX, AutoIt screen scraping) is in the anti-pattern column below.

Windows - Microsoft UI Automation (UIA)

UI Automation (UIA) is Microsoft's accessibility framework for Windows desktop applications, replacing the older Microsoft Active Accessibility (MSAA) interface (msuia). UIA exposes an AutomationElement tree with control patterns (InvokePattern, ValuePattern, SelectionPattern, etc.) that describe what each element does, not just how it looks.

Per msuia:

"UI Automation is designed for experienced C/C++ developers. In general, developers need a moderate level of understanding about Component Object Model (COM) objects and interfaces, Unicode, and Windows API programming."

Higher-level language bindings (C#, PowerShell, Python via pywinauto) sit on top. For test-automation purposes, the WinAppDriver and Appium-Windows projects expose UIA as a W3C WebDriver endpoint - which is what most QA toolchains actually drive.

macOS - Apple Accessibility + XCTest

macOS GUI testing uses the same XCTest framework that ships with Xcode for unit and integration tests. Per appleuit:

"UI testing rests upon two core technologies: the XCTest framework and Accessibility."

The three foundational classes (appleuit) are:

Class Role
XCUIApplication The application under test
XCUIElement A single UI element in the accessibility tree
XCUIElementQuery A query that resolves to zero or more XCUIElement

The general UI-test pattern per appleuit:

"Use an XCUIElementQuery to find an XCUIElement. Synthesize an event and send it to the XCUIElement. Use an assertion to compare the state of the XCUIElement against an expected reference state."

Xcode's Accessibility Inspector (bundled with Xcode → Xcode → Open Developer Tool → Accessibility Inspector) is the read-side companion: it walks the same tree the tests see, lets the engineer verify accessibility identifiers exist before writing the query, and flags WCAG-style accessibility gaps in the same pass.

Linux - AT-SPI

The Linux desktop accessibility stack is AT-SPI (Assistive Technology Service Provider Interface). Per atspi2core, the canonical implementation at-spi2-core provides "Base DBus XML interfaces for accessibility, the acce

Полный SKILL.md на GitHub

Установить desktop-test-strategy-reference в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.tessl-plugin/plugin.jsonreferences/async-waits-and-concurrency.mdreferences/platform-hazards-and-dpi.md

FAQ

Что делает скилл desktop-test-strategy-reference?

Use for any question about how to test or automate a desktop GUI app on Windows, macOS or Linux, including which tool to pick for WPF, WinForms, Qt or Electron apps and tests that break because they click by coordinates. Maps each app to a driver (FlaUI, WinAppDriver, Playwright for Electron, QtTest, XCUITest, AT-SPI) and covers accessibility-first locators, waits and elevation hazards.

Как установить скилл desktop-test-strategy-reference?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл desktop-test-strategy-reference запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить desktop-test-strategy-reference с