airtest.core.android.recorder module

class Recorder(adb)[source]

Bases: airtest.core.android.yosemite.Yosemite

Screen recorder

start_recording(*args, **kwargs)[source]

Start screen recording

Parameters:
  • max_time – maximum rate value, default is 1800
  • bit_rate – bit rate value, default is None
  • vertical – vertical parameters, default is None
Raises:

RuntimeError – if any error occurs while setup the recording

Returns:

None if recording did not start, otherwise True

stop_recording(*args, **kwargs)[source]

Stop screen recording

Parameters:
  • output – default file is screen.mp4
  • is_interrupted – True or False. Stop only, no pulling recorded file from device.
Raises:

AirtestError – if recording was not started before

Returns:

None

pull_last_recording_file(*args, **kwargs)[source]

Pull the latest recording file from device. Error raises if no recording files on device.

Parameters:output – default file is screen.mp4