Ejemplo n.º 1
0
 def setUp(self):
     if DEBUG:
         print >> sys.stderr, "@@@ UiAutomatorHelperTests.setUp"
     (self.device,
      self.serialno) = ViewClient.connectToDeviceOrExit(serialno='.*')
     self.assertIsNotNone(self.device)
     self.uiAutomatorHelper = UiAutomatorHelper(self.device)
 def setUp(self):
     if DEBUG:
         print("@@@ UiAutomatorHelperTests.setUp", file=sys.stderr)
     (self.device,
      self.serialno) = ViewClient.connectToDeviceOrExit(serialno='.*')
     self.assertIsNotNone(self.device)
     self.uiAutomatorHelper = UiAutomatorHelper(self.device)
     self.uiAutomatorHelper.ui_device.press_home()