Documentation
¶
Overview ¶
termws drives the web terminal's WebSocket for e2e tests — the browser side of terminal control (internal/server/terminal_control.go) without a browser. Built into the test-runner image.
termws -url ws://…/terminal/ws -cookie <ppz_session> [-origin O] STEP...
Steps run in order:
take | release send {"type":"take"} / {"type":"release"}
send:TEXT send TEXT followed by "\r" as a binary frame
expect:TYPE wait ≤10s for a text frame of TYPE (control,
lease, control-error), skipping others, and
print it on one line
sleep:DUR wait (Go duration)
Printing only what a step asks for keeps output deterministic when other clients' lease changes interleave.