352
edits
(video capture of UI) |
(→Recording User Actions on Device: link added) |
||
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 | 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>''' ' | |||
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. |
edits