Skip to main content
Feeds a video file into the camera of the simulator, so the app under test sees the video instead of a blank camera. Use it to test flows like QR code scanning or document capture. This command runs only on Momentic-hosted iOS simulators. It is not supported on Android or on local simulators.

Parameters

Use an .mp4, .mov, or .m4v file with a decodable video track.

Examples

Simplified form:
Detailed form, with a single pass instead of a loop:
The camera feed stays active until you change it or clear it. Put the step in before to keep one feed active for the whole test:
You can also change the feed during a test: