def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.error = '' self.timeout = 1800 os.system('adb -s %s logcat -c' % self.id)
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.error = '' self.source = {'Tuner': 170, 'VGA': 4401, 'CVBS': 4402, 'HDMI': 4435} self.a.input.back(3)
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.a.input.back(3) self.error = '' self.source = {170: 'Tuner', 4401: 'VGA', 4402: 'CVBS', 269: 'HDMI'}
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.error = '' self.id = self.setup.device_id self.a.input.back(3)
def setUp(self): try: self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id except Exception, e: self.a.log.debug("", "\n Set up")
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.filePath = "../testcases/setup" self.package = "com.lemi.controller.lemigameassistance" self.apk = "LemiGameAssistance_v_1.0.1.21_release.apk" self.error = '' self.a.input.back(3)
def setUp(self): try: self.error = '' self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.a.input.back(3) except: self.a.log.debug("", "\n Set up")
def setUp(self): try: self.loop = 30 self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() #self.stabdl=Stability.StabDL(self.a) self.a.input.back(3) except Exception, e: self.a.log.debug("", "\n Set up")
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.error = "" self.a.input.back(3) cmd = 'am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.letv.filemanager/.FileExplorerTabActivity' self.a.device.sh(cmd) time.sleep(5)
def setUp(self): try: self.error = '' self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.path = "/mnt/sdcard/Pictures/Screenshots" self.a.input.back(3) except: self.a.log.debug("", "\n Set up")
def setUp(self): try: self.error = "" self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() #self.path = "/mnt/usb/sda1/smoke_MultiMedia" self.path = "/mnt/usb/sda1/three" self.meidaType = None self.results = {} self.a.input.back(3) except Exception, e: self.a.log.debug("", "\n Set up")
def setUp(self): try: self.error = '' self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.iozonePath = "../testcases/setup/iozone" self.usbPath = "" self.path = "/mnt/sdcard" self.a.input.back(3) except: self.a.log.debug("", "\n Set up")
def setUp(self): try: #self.playtime = 1*60*60 # play 'playtime' seconds for each video self.playtime = 2 self.temPlaytime = 2 self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.error = '' self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.a.input.back(3) except Exception, e: self.a.log.debug("", "\n Set up")
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.error = '' self.id = self.setup.device_id self.a.input.back(3) for m in self.a.ui.windows(): if "Application Error" in str(m): print m self.a.input.right() time.sleep(1) self.a.input.center() time.sleep(2)
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.a.input.back(3) self.error = '' self.source = {170: 'Tuner', 4401: 'VGA', 4402: 'CVBS', 269: 'HDMI'} for m in self.a.ui.windows(): if "Application Error" in str(m): print m self.a.input.right() time.sleep(1) self.a.input.center() time.sleep(2)
def setUp(self): try: self.error = '' self.downloadTime = 80 self.upgradeTime = 350 print 'setup' self.setup = Stability.SetupDeviceConnections() print 'finish setup' self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.a.input.back(3) except: self.a.log.debug("", "\n Set up")
def setUp(self): try : #self.loop = 1 self.play_urls=[] self.error_urls = [] self.error="" self.start_over = 1 self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl=Stability.StabDL(self.a) self.pf=Stability.PlayFiles(self.a, self.playtime) self.a.input.back(3) except Exception, e: self.a.log.debug("", "\n Set up")
def setUp(self): self.error = "" self.path = "/mnt/usb/sda1" self.path2 = "/mnt/usb/sda2" self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.a.input.back(3) self.longEnfile = "1234" * 63 self.longChfile = "你好乐视" * 63 #255characters self.filename = "filesystem.test" self.dir = "dir" self.subDir = "subdir" self.dirFile = "dir" self.subDirFile = "subdir" self.multipleDir = "root/sub1/sub2/sub3/sub4/sub5/sub6/sub7/sub8/sub9/sub10/sub11/sub12/sbu13/sub14/sub15/sub16/sub17/sub18/sub19/"
def setUp(self): try : self.error = '' self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.stressAppPath = "../testcases/setup/stressapptest" self.usbPath = "" #self.a.input.back(3) #print "serial connection" #self.ser = '' #self.ser = serial.Serial(port='/dev/ttyUSB1', baudrate=115200, timeout=0) #if not self.ser.isOpen(): #self.error = 'cannot open %s' % self.ser.port #raise Exception except : #self.a.log.debug("", "\n Set up") self.fail("Error happened: %s" %self.error)
def setUp(self): try: #self.playtime = 1*60*60 # play 'playtime' seconds for each video self.playtime = 2 self.temPlaytime = 2 self.channel_num = 54 self.temPlaytime = 2 self.outloop = 1 self.loop_channel_num = 17 self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.error = '' self.stabdl = Stability.StabDL(self.a) self.id = self.setup.device_id self.a.input.back(3) #self.pullDataLogs() #self.isPlaying() except Exception, e: self.a.log.debug("", "\n Set up")
def setUp(self): self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.error = ''
def setUp(self): #这里做一些初始操作,连接设备,必须在这里 self.error = '' self.setup = Stability.SetupDeviceConnections() self.a = self.setup.initializeTestDevice() self.id = self.setup.device_id self.a.input.back(3)