robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[ENHANCEMENT] Robot Framework live output viewer

Open d-biehl opened this issue 5 months ago • 0 comments

Real‑time execution viewer using JSONL events. Runner → Broadcaster → fan‑out to configurable sinks (file, WebSocket, custom). JSONL doubles as event store for replay. Two UIs: VS Code panel and standalone HTML (index.html).

Viewers

  • VS Code: Webview panel, tree (Suite/Test/Keyword), status/duration/logs, filters, Live (WS) & Replay (JSONL; play/pause/speed, jump).
  • HTML (static): choose Broadcaster (WS URL) or load JSONL file; offline replay supported.

Event Format (JSONL)

Example:

{"ts":"2025-09-03T10:00:00Z","run_id":"r1","seq":1,"type":"run_started","level":"info","source":{},"payload":{}}

Should cover all elements that are available in result parameter of a listener method

Config (Robot Framework Listener)

definable via listener settings of robot or in robot.toml

MVP Scope

  • Broadcaster + sinks: file, ws (maybe a plug‑in API for more)
  • VS Code panel & standalone HTML (Live + Replay)
  • Basic filters + redaction hook

Acceptance

  • Near real‑time updates in both UIs
  • JSONL append is crash‑safe
  • Replay reproduces status/counts
  • Multiple sinks work in parallel

d-biehl avatar Sep 03 '25 09:09 d-biehl