GUI Testing
🌐 English · Dansk · Bahasa Melayu
A GUI test that injects mouse and keyboard input takes the cursor and focus of the machine it runs on. The framework therefore never tests a GUI on your own Windows desktop. The rule is defined once in process/gui-testing.md.
Where a GUI is tested
- A Docker container (Linux), headless or under
xvfb, or a headless browser: for a Linux, cross-platform or web UI.
- Windows Sandbox: for a Windows-only GUI (WPF, WinUI, WinForms). A disposable Windows started from a
.wsb file; start it minimized, because its window can take focus once at launch.
Results
The test writes an exit code, a log and screenshots to a folder shared with the host; the AI reads those files, not the screen. Unit and integration tests need no GUI and run on the host. When no environment is available, the AI stops and reports; it does not fall back to your desktop.