Commit Graph

3 Commits

Author SHA1 Message Date
woan d5c81826fb feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具
- 设备添加: device-add.helper 串口配对主链路(addDeviceWithSerialPairing),
  按平台设备名注册表(device-registry.helper),hub/curtain/qr 专用 helper
- 新增多设备连接用例: remote、outdoor_meter、rn_plugin,刷新各品类 connect 用例
- 配置: relay.config(继电器通道/按键映射)、wifi.config(分平台配网凭据)
- 脚本: 夜间 soak(android/ios)、reset-devices、relay 控制与报告、调试脚本
- 工具: serial_controller 串口协议、zendesk/feedback/ones-anchor helper、test-reporter
- 杂项: 撤出追踪 .DS_Store / .claude 本地设置;.gitignore 忽略
  docs/ test-plan/ test_must_case/(生成产物/单独维护)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 14:14:37 +08:00
woan 373a8bd6fa feat: 必测项自动化锚点 + 动态设备锚点 + 双协议网络切换 + ONES mutation 回写
ONES 回写:
- ones-sync 改为 ones graphql mutation(updateTestcasePlanCase/Step),修复 token 打码导致的 401;支持 step 级回写、按 case 聚合
- gen-writeback-params.ts + ones-writeback-params.json:固化用例/步骤 uuid,给 plan 链接即可回写

必测项锚点(reporter.record 名带 [P0][ONES:号(#step)][协议],it 标题带 [ONES:号] 备注):
- 添加:15 个 connect
- 控制:bot/color_bulb/lock/plug/strip_light/fan/sensor/humidifier/ceiling_light/curtain/meter/urc(双协议,PROTO 切换)
- 同品类多型号:ones-anchor.helper 动态解析(curtain/lock/plug/sensor/humidifier/hub/meter/robot),换 <CAT>_DEVICE 重跑分别回写

双协议网络前置(network.helper + driver.activateApp):
- Android adb(svc wifi + am start 蓝牙设置点 switch_widget;实测 svc bluetooth 不可用)
- iOS 系统设置 UI(蓝牙 name=BLUETOOTH / WiFi name=无线局域网,iOS26.5 实测)

测试计划:generate_test_plan.py 重构为优先级四层(必测项→探索→全功能→平台)+ AI人力估算 + 双平台/夜测/硬件并行;去除机械臂4款(82→78)
提示词:must_test_conversion / ones_to_automation(含 iOS 快速连接) / test_plan_conversion

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 16:10:57 +08:00
woan e33b042c69 feat: AI Hub 测试完善 + ONES 同步 + 必测项转换提示词
- tests/aihub/*: 侦测/勿扰/回放/本地存储/日报/AI事件等用例修正与扩展,
  新增投屏(aihub_screen_casting)、AI Hub Show(tests/aihubshow/) 与 setup helper
- utils/ones-sync.ts + scripts/sync-ones-results.ts: 测试结果反写 ONES 测试计划
- drivers/hubshow-driver.ts、firmware/test-reporter helper、device.config 更新
- docs/: UI自动化测试计划 + 生成脚本
- prompts/: 新增 must_test_conversion.md 必测项专项子提示词,
  主提示词 ones_to_automation.md 增加子提示词组合引用

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-29 11:04:12 +08:00