def setUpClass(cls): pass cls.driver = appium_testcase(devicess) cls.platformName = devicess["platformName"] cls.udid = devicess["udid"] if cls.platformName == 'android': cls.platformName = 'android' cls.logTest = myLog().getLog(cls.udid) # 每个设备实例化一个日志记录器 elif cls.platformName == 'iOS': cls.platformName = 'iOS' cls.logTest = myIosLog().getLog(cls.udid) # 每个设备实例化一个日志记录器
def setUpClass(cls): pass cls.driver = appium_testcase(devicess) cls.devicesName = devicess["deviceName"] cls.logTest = myLog().getLog(cls.devicesName) # 每个设备实例化一个日志记录器
def setUp(self): self.driver = appium_testcase(self.devices) self.logTest = myLog().getLog( self.devices["deviceName"]) # 每个设备实例化一个日志记录器
def setUpClass(cls): cls.driver = appium_testcase(cls.devices) cls.logTest = myLog().getLog( cls.devices["deviceName"]) # 每个设备实例化一个日志记录器
def setUpClass(cls): pass cls.driver = appium_testcase(devicess) cls.devicesName = devicess["deviceName"] cls.logTest = myLog().getLog(cls.devicesName) # 每个设备实例化一个日志记录器
def setUpClass(cls): pass # 注释掉通过unittest方式初始化基础数据,造成外部调用拿不到driver等数据 cls.driver, cls.launch_app = appium_testcase(devicess) cls.devicesName = devicess["deviceName"] cls.logTest = myLog().getLog(cls.devicesName) # 每个设备实例化一个日志记录器
def setUpClass(cls): cls.driver = appium_testcase(cls.devices) cls.logTest = myLog().getLog(cls.devices["deviceName"]) # 每个设备实例化一个日志记录器
def setUpClass(cls): pass cls.driver = get_driver() cls.logTest = myLog().getLog("chrome") # 每个设备实例化一个日志记录器