Esempio n. 1
0
 def setUp(self):
     self._test_name = __name__
     print
     print "[Setup]: %s" % self._test_name
     self.s0ix = get_s0ix_obj()
     self.s0ix.adb_root()
     self.s0ix.set_screen_status("on")
     self.s0ix.unlock_screen()
     DisplaySetting().set_sleep_mode("30 minutes")
Esempio n. 2
0
 def test_s0i3_audio_play(self):
     from testlib.em.constants_def import BXT_M, BXT_O
     self.music.play_audio("file://" + self.music_file)
     time.sleep(5)
     stat_inc = get_s0ix_obj().suspend_resume()
     if self.music.get_product() in [BXT_M, BXT_O]:
         assert stat_inc > 0, "Not enter S3"
     else:
         assert stat_inc == 0, "Enter S3"
Esempio n. 3
0
 def setUp(self):
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     self.s0ix = get_s0ix_obj()
     self.s0ix.adb_root()
     self.display = DisplaySetting()
     self.display.set_screen_status("on")
     self.display.unlock_screen()
     self.s0ix.testDevice.close_background_apps()
     super(S0i3SleepMode, self).setUp()
Esempio n. 4
0
    def test_post_s0i3_video_play(self):
        video_file = self.player.push_artifactory_resource(
            "video_racing", "/mnt/sdcard/Movies")
        self.player.play_local_video(video_file)
        time.sleep(10)
        assert get_s0ix_obj().suspend_resume(), "Not enter S3"

        #self.player.play_local_video(video_file)
        time.sleep(20)
        position = self.player.get_play_position()
        assert position > 10
Esempio n. 5
0
    def setUp(self):
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.s0ix = get_s0ix_obj()
        self.s0ix.adb_root()
        self.clock = Clock()

        self.clock.clear_data()
        self.clock.set_screen_status("on")
        self.clock.unlock_screen()
        DisplaySetting().set_sleep_mode("30 minutes")
        DateSetting().set_property(use_24=True)
        self.clock.testDevice.close_background_apps()
        super(S0i3ClockAlarm, self).setUp()
Esempio n. 6
0
 def setUp(self):
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     self.s0ix = get_s0ix_obj()
     self.s0ix.adb_root()
     self.url = "http://" + get_server_ip() + get_config_value(
         "webpage", "big_file")
     self.emtools = EMToolsDownload()
     self.emtools.install()
     self.emtools.grant_permissions()
     self.emtools.clean_download_folder()
     self.display = DisplaySetting()
     self.display.set_screen_status("on")
     self.display.unlock_screen()
     self.display.set_sleep_mode("30 minutes")
     self.connect_wifi()
     super(S0i3httpDownload, self).setUp()
Esempio n. 7
0
    def test_s0i3_resume_audio_play(self):
        self.music.clear_data()
        self.music.get_play_button_position()
        self.music.play_audio("file://" + self.music_file)
        time.sleep(5)

        self.music.press_play_pause_button()
        p1 = self.music.get_play_position()
        self.music.press_play_pause_button()

        stat_inc = get_s0ix_obj().suspend_resume()
        assert stat_inc > 0, "Not enter S3"

        time.sleep(20)
        self.music.press_play_pause_button()
        p2 = self.music.get_play_position()
        assert p2 >= 25
Esempio n. 8
0
 def setUp(self):
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     #self.relay = get_relay_obj()
     self.s0ix = get_s0ix_obj()
     self.serverip = get_server_ip()
     assert self.serverip != ""
     self.garage = GarageModeTest()
     self.garage.adb_root()
     self.garage.install()
     self.garage.clean_download_folder()
     self.garage.grant_permissions()
     self.wifi = WifiSetting()
     self.wifi.connect_wifi_by_conf("wifi_adb")
     assert self.wifi.check_wifi_connect()
     self.ds = DateSetting()
     self.ds.set_property()
     super(Garage, self).setUp()