What does this skill do?

The Windows Desktop E2E Testing Skill provides a comprehensive framework for automating end-to-end testing in native Windows desktop applications using pywinauto and the Windows UI Automation API. It supports frameworks such as WPF, WinForms, Win32/MFC, and Qt, and includes Page Object Model patterns, conditional wait management, test isolation with pytest fixtures, and automatic screenshot generation upon failures.

E2E Suite from Scratch
Set up a complete suite of desktop GUI tests with a project structure, fixtures, and HTML reports.
Diagnosis of Unstable Tests
Identify and fix flaky tests using step-by-step traces, screenshots, and the trace.jsonl log.
Improved Testability
Add AutomationId and accessible names to existing controls for stable and reliable locators.
CI/CD Integration
Connect desktop E2E tests in GitHub Actions pipelines using `windows-latest` runners.

Usage examples

🧪 Create a test suite
I need to set up an E2E test suite for my WPF application from scratch using pywinauto and pytest.
🐛 Diagnosing an unstable test
I have a desktop automation test that fails intermittently; please help me figure out why it's flaky.
🏷️ Add AutomationId
I want to add testing capabilities to my existing WinForms app using AutomationID and stable accessible names.
🔄 Set up CI/CD
Integrate my desktop E2E tests into a GitHub Actions pipeline using windows-latest.

Features

Multi-framework support Compatible with WPF, WinForms, Win32/MFC, and Qt using the pywinauto UIA backend.
Page Object Model Pattern Structure the code by separating locators, actions, and tests to ensure clean and scalable maintenance.
Conditional waits Replace fixed pauses with `wait_visible` and `wait_until` for stable tests that don't use `time.sleep`.
Test Isolation Pytest fixtures that redirect APPDATA and TEMP to temporary folders to ensure a fresh instance for each test.
Automatic evidence Genera capturas de pantalla FAIL_<test>.png y reportes HTML con el resumen de cada ejecución.

Frequently asked questions

Python 3.8 or later running on Windows. You must also install pywinauto, pytest, pytest-html, Pillow, and pytest-timeout.
No. This skill is designed specifically for native Windows desktop applications that expose the UI Automation tree (WPF, WinForms, Win32/MFC, and Qt).
We recommend installing Accessibility Insights for Windows to view and retrieve the AutomationIDs and accessible names for each control.
Yes. The skill includes guidelines for running tests on GitHub Actions using `windows-latest` runners and generating HTML reports as artifacts.
Windows Desktop E2E Testing — GUI Automation with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.