B2G/QA/Manual Test/Video Capture: Difference between revisions

(video capture of UI)
 
 
Line 1: Line 1:
== Recording User Actions on Device ==
== Recording User Actions on Device ==
Since the implementation of [https://bugzilla.mozilla.org/show_bug.cgi?id=1144103 Bug 1144103], it has been made possible to use adb screenrecord command on fxos devices that have kitkat or later build.  In python gaiatest, this has been implemented in [https://bugzilla.mozilla.org/show_bug.cgi?id=1237069 Bug 1237069].
Since the implementation of [https://bugzilla.mozilla.org/show_bug.cgi?id=1144103 Bug 1144103], it has been made possible to use [http://developer.android.com/tools/help/shell.html#screenrecord '''adb screenrecord'''] command on FxOS devices that have kitkat or later build.  In python gaiatest, this has been implemented in [https://bugzilla.mozilla.org/show_bug.cgi?id=1237069 Bug 1237069].


In order to perform video capture, the '''layers.screen-recording.enabled''' preference need to be set to '''True'''.  Then, with the adb installed and the device connected to pc via USB, one can issue a ''''adb shell screenrecord /sdcard/<filename>'''' command to start the recording.  Press '''Ctrl-c''' to stop recording.
* In order to perform video capture, the '''layers.screen-recording.enabled''' preference need to be set to '''True'''.   
* Then, with the adb installed and the device connected to pc via USB, one can issue a ''''adb shell screenrecord /sdcard/<filename>'''' command to start the recording.   
* Press '''Ctrl-c''' to stop recording.
* Then, pull the captured video file from the device via the command ''''adb pull /sdcard/<filename>''' '


Then, pull the captured video file from the device via the command ''''adb pull /sdcard/<filename>''' '
Please note that the maximum recording time is 180 seconds, and currently the FxOS device only supports the framerate of 15fps.


Following bash script automates above steps.  Save below script, chmod +x it, and execute to use screenrecord command as well.
Following bash script automates above steps.  Save below script, chmod +x it, and execute to use screenrecord command as well.
352

edits