Skip to content

Devices page: Record test (record actions, AI-convert to steps, open PR via build plugin) - #33

Merged
yurivibes merged 2 commits into
masterfrom
feat/record-test
Dec 2, 2026
Merged

yurivibes merged 2 commits into
masterfrom
feat/record-test

Conversation

@yurivibes

Copy link
Copy Markdown
Owner

Devices page Record test (spec: vt-specs/record-test.md).

  • Record test section under Apps: AI plugin dropdown (the configured plugin for now), Start/Stop/Add check.
  • Actions sent through the remote control are recorded server-side (recorder.py) with a frame each.
  • After Stop, one batch conversion: tap → <NAME>: CLICK …, text → <NAME>: INPUT <field> "<text>", check → <NAME>: VERIFY …, swipe → SWIPE: <dir>; verbs come from the AI plugin's /health commands. Back/Home/Recents/long-press → # comment + warning. Pauses > 2 s → WAIT: <rounded 0.5 s, max 10>.
  • Editable steps → project → branch → case (existing or new with INSTRUCTION.txt) → file → Open PR through the build plugin's new POST /repos/<o>/<r>/tests (capability write_tests, documented in BUILD_PLUGIN_API.md). Existing file refused.
  • Routes: GET /api/record/plugins, GET /api/record/projects, POST /api/record/start, /api/record/<id>/check, /api/record/<id>/stop, /api/record/pr.
  • Tests: tests/test_record_test.py (29), full suite 829 OK; AGENTS.md updated.

Companion PRs (deploy these first): yurivibes/MonkeyTester-Plugin-AI#8, yurivibes/MonkeyTester-Plugin-Build-Local#6, yurivibes/MonkeyTester-Plugin-Build-GitHub#3.

…em with the AI plugin, open a PR through the build plugin

- recorder.py: server-side recordings per signed-in user + device (one active
  per device, max 200 actions, discarded after stop or 30 min idle), batch
  conversion into steps from the AI plugin's /health commands (tap/text/check
  via one AI call each, SWIPE built in, keys/long-press as # comments), auto
  WAIT for pauses > 2 s (nearest 0.5 s, max 10)
- app.py: GET /api/record/plugins, /api/record/projects; POST
  /api/record/start, /api/record/<id>/check, /api/record/<id>/stop,
  /api/record/pr; POST /api/device-action logs to the active recording
- builds.py / build_plugin_client.py: record_projects, write_tests forwarding
  to the build plugin's POST /repos/<o>/<r>/tests (capability write_tests)
- stream.html: Record test section under Apps with the Open PR flow
- BUILD_PLUGIN_API.md: write_tests capability and route
- tests: test_record_test.py; fakes for controller /frame and plugin /tests
  (pairing token enforced)
@yurivibes
yurivibes merged commit b12c4e1 into master Dec 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant