예제 #1
0
    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)
예제 #2
0
    def setUpClass(cls):
        super(AndroidNativeUITestCase, cls).setUpClass()

        cls.poco = AndroidUiautomationPoco()

        # 启用动作捕捉(action tracker)和游戏运行时日志捕捉插件(runtime logger)
        action_tracker = ActionTracker(cls.poco)
        cls.register_addin(action_tracker)
예제 #3
0
    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)
예제 #4
0
 def setUpClass(cls):
     cls.poco = UnityPoco()
     action_tracker = ActionTracker(cls.poco)
     cls.register_addon(action_tracker)
예제 #5
0
파일: case.py 프로젝트: songzcn/Poco
 def setUpClass(cls):
     cls.poco = UnityPoco(('10.254.44.76', 5001))
     action_tracker = ActionTracker(cls.poco)
     cls.register_addin(action_tracker)