def setUpClass(cls): from airtest.core.api import connect_device connect_device('Android:///') cls.poco = UnityPoco() action_tracker = ActionTracker(cls.poco) cls.register_addon(action_tracker)
def setUpClass(cls): super(AndroidNativeUITestCase, cls).setUpClass() cls.poco = AndroidUiautomationPoco() # 启用动作捕捉(action tracker)和游戏运行时日志捕捉插件(runtime logger) action_tracker = ActionTracker(cls.poco) cls.register_addin(action_tracker)
def setUpClass(cls): super(AndroidAppCase, cls).setUpClass() if not current_device(): connect_device('Android:///') dev = current_device() meta_info_emitter = cls.get_result_emitter('metaInfo') if device_platform() == 'Android': meta_info_emitter.snapshot_device_info(dev.serialno, dev.adb.get_device_info()) cls.poco = AndroidUiautomationPoco(screenshot_each_action=False) action_tracker = ActionTracker(cls.poco) cls.register_addon(action_tracker) cls.site_capturer = SiteCaptor(cls.poco) cls.register_addon(cls.site_capturer)
def setUpClass(cls): cls.poco = UnityPoco() action_tracker = ActionTracker(cls.poco) cls.register_addon(action_tracker)
def setUpClass(cls): cls.poco = UnityPoco(('10.254.44.76', 5001)) action_tracker = ActionTracker(cls.poco) cls.register_addin(action_tracker)