def setUp(self): super(Fit, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._fit = FitImpl() self._fit.set_password_lock() self.wallpaper = WallpaperImpl()
class ComposeUI(UIATestBase): 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 tearDown(self): print "[Teardown]: %s" % self._test_name super(ComposeUI, self).tearDown() self._composeui.uninstall_mxtech() self._fit.open_wifi() self._composeui.delete_local_video() def test_immersemode_mxplayer(self): ''' refer TC test_ImmerseMode_MXPlayer ''' print "[RunTest]: %s" % self.__str__() self._composeui.launch_mxtech_am() self._composeui.check_notification_during_playing() self._composeui.stop_mxtech_am()
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._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 setUpClass(self): """ install apk """ super(ImageSlideshow, self).setUpClass() config = TestConfig() FitImpl.set_environment() self._fit = FitImpl() cfg_file = 'tests.tablet.fit.conf' cfg_alarm = config.read(cfg_file, 'alarm') self.delay = cfg_alarm.get('delay')
class ComposeUI(UIATestBase): 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 tearDown(self): print "[Teardown]: %s" % self._test_name super(ComposeUI, self).tearDown() # self._composeui.delete_local_video() # self._flvvideoplayer.uninstall_app() self._composeui.uninstall_mxtech() self._fit.open_wifi() self._composeui.delete_local_video() def test_VideoPlayer_FLV(self): ''' refer TC test_VideoPlayer_FLV ''' print "[RunTest]: %s" % self.__str__() # self._flvvideoplayer.launch_app_am() # self._flvvideoplayer.play_video() # self._flvvideoplayer.stop_app_am() self._composeui.launch_mxtech_am() self._composeui.check_notification_during_playing() self._composeui.stop_mxtech_am()
class Fit(RenderAppTestBase): def setUp(self): super(Fit, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._fit = FitImpl() def tearDown(self): print "[Teardown]: %s" % self._test_name super(Fit, self).tearDown() self._fit.open_wifi() def test_progressivedownload_networkconnectionlost(self): ''' refer TC test_ProgressiveDownload_NetworkConnectionLost ''' print "[RunTest]: %s" % self.__str__() self._fit.launch_playstore_am() self._fit.close_wifi_during_download_airattack() self._fit.stop_playstore_am()
class Fit(RenderAppTestBase): def setUp(self): super(Fit, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._fit = FitImpl() def tearDown(self): print "[Teardown]: %s" % self._test_name super(Fit, self).tearDown() self._fit.unset_airplane() def test_airplanemode_enableconnectwifi_suspendresume(self): ''' refer TC test_AirplaneMode_EnableConnectWIFI_SuspendResume ''' print "[RunTest]: %s" % self.__str__() self._fit.set_airplane() self._fit.enable_wifi() self._fit.suspend_and_resume()
class Fit(RenderAppTestBase): def setUp(self): super(Fit, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._fit = FitImpl() self._fit.set_password_lock() self.wallpaper = WallpaperImpl() def tearDown(self): print "[Teardown]: %s" % self._test_name super(Fit, self).tearDown() self._fit.set_none_lock_from_password() self.wallpaper.reset_wallpaper() def test_passwordunlock_livewallpaper(self): ''' refer TC test_PasswordUnlock_LiveWallpaper ''' print "[RunTest]: %s" % self.__str__() self._fit.set_live_wallpaper_phasebeam() self._fit.test_password_lock()
class Fit(UIATestBase): def setUp(self): super(Fit, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._fit = FitImpl() def tearDown(self): print "[Teardown]: %s" % self._test_name super(Fit, self).tearDown() self._fit.open_wifi() def test_opensavedwebpageinoffline(self): ''' refer TC test_OpenSavedWebPageInOffline ''' print "[RunTest]: %s" % self.__str__() html5.check_chrome_installed() html5.launch_chrome_am() self._fit.open_google_web_and_disconnect_wifi() html5.stop_chrome_am() html5.launch_chrome_am() self._fit.check_web_after_disconnect_wifi() html5.stop_chrome_am()
def setUp(self): super(Fit, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name self._fit = FitImpl()
class ImageSlideshow(RenderAppTestBase): @classmethod def setUpClass(self): """ install apk """ super(ImageSlideshow, self).setUpClass() config = TestConfig() FitImpl.set_environment() self._fit = FitImpl() cfg_file = 'tests.tablet.fit.conf' cfg_alarm = config.read(cfg_file, 'alarm') self.delay = cfg_alarm.get('delay') def setUp(self): super(ImageSlideshow, self).setUp() self._test_name = __name__ print "[Setup]: %s" % self._test_name def tearDown(self): print "[Teardown]: %s" % self._test_name super(ImageSlideshow, self).tearDown() def test_imagslideshow_instant_messaging(self): ''' refer TC test_Graphics_PSS ''' self._fit.sync_time_with_host() self._fit.launch_alarm() self._fit.delete_all_alarms() self._fit.add_alarm_by_delay_time(float(self.delay)) time.sleep(self._fit.sleep_time) print "wait to view picture before alarm ring" self._fit.slide_view() time.sleep(20) self._fit.dismiss_alarm() self._fit.stop_app_am()