wlauto.instrumentation.screenon package

Module contents

class wlauto.instrumentation.screenon.ScreenMonitor(device, polling_period)[source]

Bases: threading.Thread

run()[source]
stop()[source]
class wlauto.instrumentation.screenon.ScreenOnInstrument(device, **kwargs)[source]

Bases: wlauto.core.instrumentation.Instrument

aliases = AC([])
artifacts = AC([])
core_modules = []
description = '\n Ensure screen is on before each iteration on Android devices.\n\n A very basic instrument that checks that the screen is on on android devices. Optionally,\n it call poll the device periodically to ensure that the screen is still on.\n\n '
finalize(*args, **kwargs)
initialize(*args, **kwargs)
kind = 'instrument'
name = 'screenon'
parameters = AC(["Param({'kind': <type 'list'>, 'mandatory': None, 'name': 'modules', 'constraint': None, 'default': None, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function integer>, 'mandatory': None, 'name': 'polling_period', 'constraint': None, 'default': None, 'allowed_values': None, 'global_alias': None, 'override': False})"])
slow_setup(context)[source]
teardown(context)[source]
validate(*args, **kwargs)