record
Referenced In
Fields
| Field | Type | Description | Default |
|---|---|---|---|
| record | one of: - boolean - string - object(Record (detailed)) | Required. Start recording. A later stopRecord step stops it, and Doc Detective stops any recording still running when the test context ends. The browser engine captures the Chrome viewport (works under concurrency); the ffmpeg engine captures the screen and supports any application. On Android/iOS contexts, recording captures the device screen through the device itself — engine doesn’t apply. Supported extensions, in any case: .mp4, .webm, and .gif. | — |
Examples
{"record": true}
{"record": false}
{"record": "results.mp4"}
{"record": "Demo.MP4"}
{"record": {"path": "results.mp4","directory": "static/media","overwrite": "true"}}
{"record": {"path": "results.mp4","engine": "ffmpeg"}}
{"record": {"path": "results.mp4","checkpoints": true}}
{"record": {"path": "results.mp4","checkpoints": {"maxVariation": 0.02,"directory": "baselines/results"}}}
{"record": {"path": "results.mp4","engine": {"name": "ffmpeg","target": "window","fps": 60}}}
{"record": {"path": "notepad.mp4","surface": {"app": "notepad"}}}
{"record": {"path": "full-screen.mp4","surface": {"app": "notepad"},"engine": {"name": "ffmpeg","target": "display"}}}