Test execution video

Hi Team,
I need to capture video of the test execution running on the mobile device (iOS and Android).
Please suggest how can we capture it.