def setUpClass(self):
     # debug_id_pre = 'com.yealink.uc.android.alpha:id/'
     self.commonCls = commonClass.commonCase(commonClass.debug_id_pre)
     self.call_num_str = '4001'
     self.call_type = '[视频通话]'
     print('callRecordDetailCase setup')
     self.commonCls = commonClass.commonCase(commonClass.debug_id_pre)
     self.driver = self.commonCls.startUpApp()
     self.paramter = self.commonCls.paramter
Esempio n. 2
0
 def setUpClass(self):
     print('callBackCase setup')
     # debug_id_pre = 'com.yealink.uc.android.alpha:id/'
     self.commonCls = commonClass.commonCase(commonClass.debug_id_pre)
     self.driver = self.commonCls.startUpApp()
     self.paramter = self.commonCls.paramter
     self.first_calllog_type = '[视频通话]'
Esempio n. 3
0
def circleStart():
    n = 1
    commonCls = commonClass.commonCase(commonClass.debug_id_pre)
    while n < 2000:
        # commonCls.restart_adb()
        runner = unittest.TextTestRunner()
        runner.run(circleStartCase())  #循环启停
        print(time.ctime())
        print(n)
        n += 1
        time.sleep(3)
Esempio n. 4
0
def connectmobile():
    packageName = 'com.yealink.uc.android.alpha'
    commonCls = commonClass.commonCase(packageName)
    commonCls.restart_adb()
    # platformName = 'Android'  # 设备系统
    # platformVersion = '7.1.2'  # 设备系统版本
    # deviceName = 'e43bd0eb'  # 设备名称,通过adb devices获取
    # newCommandTimeout = 300
    # appPackage = 'com.yealink.uc.android.alpha'  # 通过aapt dump badging包名来获取
    # appActivity = 'com.yealink.uc.android.StartActivity'  # 通过aapt dump badging包名来获取
    desired_caps = {
        # 'platformName': 'Android',
        # 'platformVersion': '7.1.2',
        # 'deviceName': 'e43bd0eb',
        # 'newCommandTimeout': '300',
        # 'noReset':'true',
        # 'appPackage': 'com.yealink.uc.android.alpha',
        # 'appActivity': 'com.yealink.uc.android.StartActivity',
        # 'automationName':'uiautomator2',

        # 'platformName': 'Android',
        # 'platformVersion': '5.1.1',
        # 'deviceName': '127.0.0.1:62025',
        # 'newCommandTimeout': '300',
        # 'noReset': 'true',
        # 'appPackage': 'com.yealink.uc.android.alpha',
        # 'appActivity': 'com.yealink.uc.android.StartActivity',
        # 'automationName': 'uiautomator2',
        'platformName': 'Android',  #小米4+lmx
        'platformVersion': '6.0.1',
        'deviceName': '50e35a0',
        'newCommandTimeout': '300',
        'noReset': 'true',
        'appPackage': packageName,
        'appActivity': 'com.yealink.uc.android.StartActivity',
        'appWaitActivity': 'com.yealink.uc.android.MainActivity',
        'automationName': 'uiautomator2',
    }

    return desired_caps
Esempio n. 5
0
 def setUpClass(self):
     print('IM VideoCall setup')
     # debug_id_pre = 'com.yealink.uc.android.alpha:id/'
     self.commonCls = commonClass.commonCase(commonClass.debug_id_pre)
     self.driver = self.commonCls.startUpApp()
     self.paramter = self.commonCls.paramter
Esempio n. 6
0
 def setUp(self):
     print('Logout setup')
     # debug_id_pre = 'com.yealink.uc.android.alpha:id/'
     self.commonCls = commonClass.commonCase(commonClass.debug_id_pre)
     self.driver = self.commonCls.startUpApp()
Esempio n. 7
0
 def tearDownClass(self):
     self.commonCls = commonClass.commonCase(commonClass.debug_id_pre)
     self.commonCls.restart_adb()
     print('tearDown')
Esempio n. 8
0
def packup_log():
    commonCls = commonClass.commonCase(commonClass.debug_id_pre)
    commonCls.packup_log()