日期:2026-05-02 23:23:31 +08:00
本轮 QA 覆盖 MVP 自动化可验证范围:
真实桌面交互仍需人工复验:托盘菜单、壁纸层级、桌面图标点击穿透、组件拖拽缩放、WebView2 Runtime 缺失提示。
F:\AI\WebView2Moli.Desktop.slnxhttp://127.0.0.1:8765artifacts\Moli.Desktop-win-x64.zip| 模块 | 检查项 | 结果 | 证据 |
|---|---|---|---|
| 构建 | dotnet build .\Moli.Desktop.slnx |
Pass | 0 警告,0 错误 |
| 单元测试 | dotnet test .\Moli.Desktop.slnx |
Pass | 23 passed, 0 failed, 0 skipped |
| 样例插件 | samples\plugins\*\plugin.json 可解析且 entry 存在 |
Pass | 4 个样例插件均有效 |
| HTTP API | /api/status、编辑模式、安全输入、插件列表、组件布局 |
Pass | plugins=3,widgets=2,layout API accepted |
| WebSocket | /ws/events 可连接并接收运行时事件 |
Pass | 收到 api.connected 与 webview.lifecycle...edit-mode-changed |
| 回环绑定 | 8765 监听地址 | Pass | 127.0.0.1:8765 Listen |
| 发布包 | scripts\package-portable.ps1 |
Pass | 生成 artifacts\Moli.Desktop-win-x64.zip |
| 发布包内容 | exe/dll 和 samples plugin.json | Pass | zip 含 Moli.Desktop.exe、Moli.Desktop.dll 和 4 个样例 manifest |
| 占位实现 | TODO/FIXME/NotImplemented/HACK 扫描 | Pass | 排除 bin/obj 后无命中 |
| ID | 用例 | 步骤 | 期望 | 结果 |
|---|---|---|---|---|
| QA-001 | 构建门禁 | 执行 dotnet build .\Moli.Desktop.slnx |
成功构建,无编译错误 | Pass |
| QA-002 | 自动化测试门禁 | 执行 dotnet test .\Moli.Desktop.slnx |
全部测试通过 | Pass |
| QA-003 | 样例插件完整性 | 解析 4 个 plugin.json 并检查 entry |
JSON 有效且入口文件存在 | Pass |
| QA-004 | 应用进程 API 启动 | 启动 Debug 产物并轮询 /api/status |
15 秒内 API ready | Pass |
| QA-005 | API 命令 smoke | 执行 scripts\api-smoke-test.ps1 |
状态读取、编辑模式、安全输入、插件列表、layout API 成功 | Pass |
| QA-006 | WebSocket 事件 | 连接 /ws/events 后切换编辑模式 |
收到运行时事件 | Pass |
| QA-007 | API 绑定范围 | 查询 8765 监听地址 | 仅监听 127.0.0.1 |
Pass |
| QA-008 | 便携包生成 | 执行 scripts\package-portable.ps1 |
zip 生成成功 | Pass |
| QA-009 | 便携包内容 | 检查 zip 关键条目 | 包含应用入口和样例插件 | Pass |
| QA-010 | 源码占位扫描 | 扫描源码和文档中的占位标记 | 无未实现占位 | Pass |
IDesktopRuntime、RuntimeSurfaceController、API 或托盘后必须重跑 API smoke。自动化验收范围全部通过,未发现阻断发布的自动化缺陷。
本轮实际执行结果:
dotnet build .\Moli.Desktop.slnx
已成功生成。0 个警告,0 个错误。
dotnet test .\Moli.Desktop.slnx
已通过:23,通过;0 失败;0 跳过。
scripts\api-smoke-test.ps1
status: editMode=False, safeInput=False, plugins=3, widgets=2
edit-mode toggled: True
safe-input confirmed: False
plugins endpoint returned 3 item(s)
widget layout accepted: sample.clock.default
API smoke test completed.
建议进入 MVP 人工验收阶段。自动化门禁、API smoke、WebSocket、样例插件和发布包检查均通过;发布前需补齐真实桌面手工验收记录,重点关注托盘可恢复控制、点击穿透安全输入、壁纸层级和组件拖拽缩放保存。