/ekosistem-edho-ferdian:desktop-e2e-edho-ferdianfrom ekosistem-edho-ferdian
End-to-end tests for Windows desktop apps (WPF, WinForms, Win32, Qt) using pywinauto over UI Automation. Handles locator strategy, flake quarantine, and artifact capture for native GUI automation.
Ships in ekosistem-edho-ferdian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
e2e-testing-edho-ferdian owns the process: Phase 1 journey mapping,
Phase 2 Page Object Model, Phase 3 flake quarantine, Phase 4 artifact capture.
All four are driver-agnostic and apply unchanged here — do not restate or fork
them. This skill supplies only what changes when the driver is native Windows
automation instead of a browser:
| Concept | Browser (Playwright) | Here (pywinauto + UIA) |
|---|---|---|
| Locator | role / data-testid / CSS | AutomationId → Name → ClassName+index |
| Wait | auto-waiting locators | spec.wait("visible") / wait_until(...) |
| Artifact | screenshot / video / trace | window capture / ffmpeg gdigrab / step trace |
| Isolation | browser context | fresh process + redirected APPDATA/TEMP |
Not for: web apps (use Playwright), Electron/CEF/WebView2 (the HTML layer needs browser automation, UIA only sees the shell), mobile, or anything that does not need a running GUI.
Everything routes through Windows UI Automation, an accessibility API built into Windows. Each UI framework ships a UIA provider of varying quality:
pytest → pywinauto (uia backend) → Windows UI Automation API → app's UIA provider → running .exe
| Framework | AutomationId source | Reliability |
|---|---|---|
| WPF | x:Name maps directly | Excellent |
| UWP / WinUI 3 | native | Excellent |
| Qt 6.x | setAccessibleName; accessibility on by default | Excellent |
| WinForms | AccessibleName | Good |
| Qt 5.15+ | needs QT_ACCESSIBILITY=1 | Good |
| Qt 5.7–5.14 | needs QT_ACCESSIBILITY=1; manual objectName | Fair |
| Win32 / MFC | resource control IDs appear as numeric strings | Fair |
pip install pywinauto pytest pytest-html pytest-timeout Pillow
from pywinauto import Desktop
Desktop(backend="uia").windows() # must list top-level windows
Install Accessibility Insights for Windows (free, Microsoft) — it is the DevTools equivalent for this stack. Inspect the UIA tree there before writing a locator; guessing at AutomationIds is the main time sink here.
If UIA is unreachable, or the target turns out to be Electron/WebView2, stop
and say so — report VERIFIED: NO — no usable native automation driver, the
same convention the rest of this ecosystem uses. Never fabricate a run.
The single highest-leverage action is giving every interactive control a stable AutomationId before writing tests. Per framework:
x:Name="btnLogin" in XAML; nothing else needed.btnLogin.AccessibleName = "btnLogin";void setTestId(QWidget* w, const char* id) {
w->setObjectName(id);
w->setAccessibleName(id); // becomes the UIA Name property
}
SetWindowText for a readable Name.A test suite written against ClassName + index because the app has no
AutomationIds will be rewritten within a release. Fixing testability in the app
is cheaper than the flakiness it prevents — say so when the app owner resists.
references/pywinauto-harness.md — the Page Object base class, locator
priority, wait patterns, artifact capture, the opt-in per-step trace, and the
flaky-cause table.references/isolation-and-ci.md — the three isolation tiers (tmp_path
env redirect / Job Object / Windows Sandbox), hang prevention, and the GitHub
Actions windows-latest workflow.references/qt-and-fallback.md — Qt-specific quirks (combo popups,
dialogs as top-level windows, table cells, self-drawn widgets) and the
screenshot-matching fallback with its DPI rules.references/worked-suite.md — a WPF invoice app: isolated launch fixture, page objects over UIA, one journey test, failure artifacts, CI job. Read it when doing the work, not before routing.
| You say | Mode or reference it loads | Parameters |
|---|---|---|
| "test aplikasi WPF ini pakai pywinauto" | Phase 0′, then references/pywinauto-harness.md | framework = WPF; app = the .exe |
| "test .exe Qt kita, kontrolnya gak punya ID" | Testability first, references/qt-and-fallback.md | framework = Qt version |
| "suite desktop GUI kadang hang di CI" | references/isolation-and-ci.md | isolation tier |
| "tambah test alur invoice" | journey and page objects, references/worked-suite.md | journey from e2e-testing Phase 1 |
| Parameter | Required | Values | Default |
|---|---|---|---|
app | required | path to the built .exe | none |
framework | detected | WPF, WinForms, Win32/MFC, UWP/WinUI 3, Qt (5.7+ or 6) | detected from the app; sets AutomationId source and reliability |
| isolation tier | optional | tmp_path env redirect, Job Object, Windows Sandbox | the three tiers are in references/isolation-and-ci.md |
| step trace | optional | on or off | off; never on a login or payment flow |
Out of scope: web, Electron/CEF/WebView2, mobile. If UIA is unreachable the
report says VERIFIED: NO — no usable native automation driver and no run is
invented.
Output: pytest tests over page objects with a fresh isolated process each,
failure artifacts, and a CI job for windows-latest. Full run:
references/worked-suite.md.
When the work reaches one of these, load that skill with the Skill tool and follow it — don't write its part from memory.
test-authoring-edho-ferdianbuild-fix-edho-ferdianCommunication to the user in Bahasa Indonesia; test code, page-object names,
and assertions in English — fixed, never ask. Full contract:
skill-authoring-edho-ferdian §7.
time.sleep() as synchronization. wait_visible / wait_gone /
wait_until exist for exactly this.lblStatus == "Logged in" is a test; btn.rectangle().left == 120 is a trap.e2e-testing-edho-ferdian/references/flake-quarantine.md applies verbatim;
the Python spelling is @pytest.mark.skip(reason="...") /
@pytest.mark.skipif(os.environ.get("CI") == "true", reason="...").What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
windows-testing, gui-automation, pywinauto, desktop-testing, e2e-testing
43 skills in this plugin
/api-design-edho-ferdianDesign and evolve API contracts: REST resource naming, status codes, pagination, versioning, and one authoritative OpenAPI/schema so client and server never drift. Use for "desain API untuk fitur ini", "struktur endpoint yang baik", "API contract berubah", "REST vs apa", or a new API surface./ask-eefEntry point to the EEF skills: reads the request and the project, then loads the right skill or sequence (dev-kickoff, design-engineering, build-fix, code-review...). Use at the start of a task when no skill is obviously right, or for "ask-eef", "pakai skill apa", "mulai dari mana", "bantu kerjakan ini", "aku mau bikin", "gimana caranya"./npx claudepluginhub edhoferdian/eef --plugin ekosistem-edho-ferdianOther plugins' skills for the same job