def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ self.device = g_common_obj.get_device() print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() self._imageviewer = ImageDetails() self.photos = PhotosExtendImpl() self.photosImpl = get_photo_implement() self.qrcodeImpl = QRcode() g_common_obj.root_on_device() g_common_obj.remount_device() self.photosImpl.rm_delete_photos() self.photosImpl.refresh_sdcard() self.photos.clean() self.qrcode = "GIFPICTURE" config = TestConfig() cfg_file = 'tests.tablet.artifactory.conf' cfg_arti = config.read(cfg_file, 'artifactory') config_handle = ConfigHandle() cfg_arti["location"] = config_handle.read_configuration('artifactory', 'location', '/etc/oat/', 'sys.conf') cfg = config.read(cfg_file, 'qrcode_marked_image') self.qrcode = cfg.get("screenshot_edit_qrcode") print "[Debug] qrcode:%s" % (self.qrcode) arti = Artifactory(cfg_arti.get('location')) pic_name = cfg.get("screenshot_edit_image") file_path = arti.get(pic_name) g_common_obj.adb_cmd_common('push ' + file_path + ' /sdcard/Pictures') self.photosImpl.refresh_sdcard() special_actions.setup() self.photos.setup()
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name #### Replace with MX # self._flvvideoplayer = FLVVideoPlayer() # self._composeui = ComposeUiImpl() # self.photos = get_photo_implement() # config = TestConfig() # cfg_file = 'tests.tablet.composeui.conf' # cfg_arti = config.read(cfg_file, 'artifactory') # config_handle = ConfigHandle() # cfg_arti["location"] = config_handle.read_configuration('artifactory', 'location', '/etc/oat/', 'sys.conf') # arti = Artifactory(cfg_arti.get('location')) # cfg_apk = config.read(cfg_file, 'FLVplayer') # binary_name = cfg_apk.get("name") # file_path = arti.get(binary_name) # result = config_handle.check_apps("air.br.com.bitlabs.FLVPlayer") # if result == 0: # g_common_obj.adb_cmd_common('install ' + file_path) # self.photos.rm_delete_photos() # self.photos.refresh_sdcard() # self._composeui.init_local_video() self._composeui = ComposeUiImpl() self._fit = FitImpl() config_handle = ConfigHandle() result = config_handle.check_apps("com.mxtech.videoplayer.ad") if result == 0: self._composeui.install_apk('Mxplayer') self._composeui.init_local_video()
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() self.photos = get_photo_implement() self.photos.rm_delete_photos() self.photos.refresh_sdcard()
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() config_handle = ConfigHandle() result = config_handle.check_apps("com.intel.aws.workload.applaunch") if result == 0: self._composeui.install_apk('LaunchWorkload')
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() self._fit = FitImpl() config_handle = ConfigHandle() result = config_handle.check_apps("com.mxtech.videoplayer.ad") if result == 0: self._composeui.install_apk('Mxplayer') self._composeui.init_local_video()
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() self.photos = get_photo_implement() self.photos.rm_delete_photos() self.photos.refresh_sdcard() self._composeui.init_local_video() self.extend_photos = PhotosExtendImpl() self.remote_path = self.extend_photos.push_videos(like='test_video_qr', exts='.mp4')[0]
def setUp(self): super(SetLiveWallpaperSuspendResume, self).setUp() self._test_name = __name__ self._device = g_common_obj.get_device() print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() self._liveWallpaper = WallpaperImpl() # self._liveWallpaper.reset_wallpaper() config_handle = ConfigHandle() result = config_handle.check_apps("com.android.galaxy4") if result == 0: self._composeui.install_apk('Galaxy4')
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() config_handle = ConfigHandle() result = config_handle.check_apps("org.geometerplus.zlibrary.ui.android") if result == 0: self._composeui.install_apk('FBReader') result = config_handle.check_apps("org.geometerplus.fbreader.plugin.pdf") if result == 0: self._composeui.install_apk('PDFplugin') self._composeui.init_local_pdf()
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self.d = g_common_obj.get_device() # self.photos = get_photo_implement() self._composeui = ComposeUiImpl() config_handle = ConfigHandle() result = config_handle.check_apps("com.mxtech.videoplayer.ad") if result == 0: self._composeui.install_apk('Mxplayer') self.d.screen.on() self._qr = QRcode() self.extend_photos = PhotosExtendImpl() self.remote_path = self.extend_photos.push_videos( count=1, like='test_video_qr_middle', exts='.mp4')[0] adb32.screen_rotation(0)
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl()
def setUp(self): super(ComposeUI, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._composeui = ComposeUiImpl() self.photos = get_photo_implement()