Video
Steps for starting and stopping screen recording on the device/simulator (idb on iOS, adb screenrecord on Android). Only one recording can be active at a time.
startRecording
Start screen recording. The file is written when you call stopRecording.
Parameters
Example
Tips
- Use
startRecordinginsetupandstopRecordinginteardownso the full run is captured. Teardown runs even on step failure, so the recording is always stopped. - If you omit
path, the file is saved asoutputDir/e2e-recording.mp4(e.g.e2e-artifacts/yaml-results/e2e-recording.mp4when using-o e2e-artifacts/yaml-results).
stopRecording
Stop the current recording and save the file.
Parameters
None. Use an empty object: stopRecording: {} or scalar: stopRecording: null.
Example
Tips
- Safe to call in teardown even when no recording was started (no-op).
- After stopping, the path is reported in the runner output.