/qt-suite:visual [optional: test scenario description or app entry point]from qt-suite
Launches a Qt/PySide6 app headlessly and runs visual GUI tests via the Qt Pilot MCP server. Interacts with the live UI through screenshots, clicks, and text input, then writes a test report.
Ships in qt-suite. Installing the plugin adds it to Claude Code.
Launch the application headlessly and run visual tests using the Qt Pilot MCP server. Claude interacts with the live UI, verifies behavior, and writes a test report.
Run the prerequisites check before attempting to launch:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/check-prerequisites.sh"
If Xvfb is missing, stop and report the install instructions — do not proceed.
Determine the application entry point:
/qt-suite:visual src/main.py), use it..qt-test.json — use app_entry field if set.main.py, app.py, __main__.py in project root and src/QApplication (Grep for QApplication)Call the Qt Pilot get_app_status MCP tool. If running: true, attach to the existing session. If not running (or crashed), launch fresh.
Call launch_app with the resolved entry point:
launch_app(script_path="/abs/path/to/main.py")
Or for module-based apps:
launch_app(module="myapp.main", working_dir="/abs/path/to/project")
Wait for success: true. If launch fails, call get_app_status to retrieve stderr output and report the error with the full stderr content — do not attempt workarounds.
Before testing, always discover available widgets:
find_widgets("*") → lists all named widgets
list_actions() → lists all menu/toolbar actions
If the argument provided describes a specific UI scenario (e.g., "test the file open dialog"), use list_all_widgets to discover the full hierarchy including unnamed elements.
If a scenario was provided in the argument, execute it. For example, if the user says /qt-suite:visual test the save workflow:
action_save actionIf no scenario was specified, run a general smoke test:
get_app_status)After every click or input action that may trigger async behavior, call wait_for_idle before the next action.
Capture screenshots at key moments:
capture_screenshot(output_path="tests/reports/visual_<timestamp>_initial.png")
capture_screenshot(output_path="tests/reports/visual_<timestamp>_final.png")
Use ISO timestamp format: 2026-02-22_14-35.
close_app()
Write a markdown report to tests/reports/gui-<timestamp>.md (create the tests/reports/ directory if needed):
# GUI Test Report — <date> <time>
**App:** <entry_point> **Scenario:** <description or "smoke test"> **Result:** PASS / FAIL (N/M interactions succeeded)
## Test Steps
| Step | Action | Expected | Result | Notes |
| ---- | ------------------- | ---------------- | ------- | ----- |
| 1 | launch_app | Window appears | ✅ PASS | |
| 2 | click calculate_btn | Display updates | ✅ PASS | |
| 3 | type "abc" in input | Validation error | ✅ PASS | |
## Failures
(list any FAIL steps with full error messages from Qt Pilot)
## Screenshots
- Initial state: `visual_<timestamp>_initial.png`
- Final state: `visual_<timestamp>_final.png`
## Recommendations
(optional: widget object names missing, behaviors to fix, edge cases to add)
Report the path to the markdown file when done.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Other plugins' commands for the same job
npx claudepluginhub l3digitalnet/claude-code-plugins --plugin qt-suite6 commands in this plugin
/coverageRun coverage analysis for the Qt project. Instruments the build, executes tests, generates an HTML report, identifies coverage gaps, and optionally triggers the test-generator agent to fill them./generateGenerate unit tests for Qt/PySide6 source files. Claude scans the project, identifies files that need better test coverage, and writes test files following the project's testing conventions./new-componentGenerate a new Qt widget, dialog, or window class with correct boilerplate and object names./runBuild and run the Qt project's test suite. Auto-detects Python (pytest) vs C++ (CMake + CTest) and reports results with a pass/fail summary./scaffoldScaffold a new Python/PySide6 application with pyproject.toml, src layout, and qt-suite config.