Silk Mobile

Table of Contents (Homepage)

StartVideoRecord

StartVideoRecord()

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

images/images/os-icons/os_blackberry_150x150.png

images/images/os-icons/os_symbian02_150x150.png

images/images/os-icons/os_windows_mobile_150x150.png

Description

These commands gives you the ability to video record the test execution, and later view it as part of the generated report .

Parameters

None

Usage

Example:

The record will start once the command StartVideoRecord is executed in the script, and will stop when the command StopVideoRecordis called for.

images/download/attachments/3310260/18.jpg

To launch the video, choose the StopVideoRecord command. This step will include the video of the execution.

images/download/attachments/3310260/19.jpg

Note: There is no limitations on the number of different videos that can be generated during a single script. You can add the StartVideoRecord / StopVideoRecord commands multiple times during a script, and for each block the video will show in the report under the proper StopVideoRecord command.

Code Examples

Java Example
client.startVideoRecord();
client.stopVideoRecord();
C# Example
client.StartVideoRecord();
client.StopVideoRecord();
VBScript Example
client.StartVideoRecord
Report
client.StopVideoRecord
Report
Python Example
self.client.startVideoRecord()
self.client.stopVideoRecord()
Perl Example
$client->startVideoRecord();
$client->stopVideoRecord();

The following properties of file app.properties can affect the quality and the duration of the recorded video:

  • VideoBuilder.timeScalePerSecond=<FPS>
    which sets how many frames are to be taken per second, i.e., the quality of the video. By default, the quality is four frames per second. For example, in order to set the video quality to 7 frames per second, you can add the following entry to file app.properties:
    VideoBuilder.timeScalePerSecond=7

  • VideoBuilder.videoMaxSize=<SIZE_LIMIT_IN_BYTES>
    which limits the size of the produced video file. The actual limit is slightly above <SIZE_LIMIT_IN_BYTES> bytes. For example, in order to limit the recorded video by approximately 1GB, you can add the following entry to file app.properties:
    VideoBuilder.videoMaxSize=1000000000
    When this property is not set, the video-file size is limited by nearly 100MB.
    It is not recommended to set this value to a small number.