Esempio n. 1
0
class ChromeCast(UIATestBase):
    def setUp(self):
        super(ChromeCast, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self._chromecast = ChromeCastImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(ChromeCast, self).tearDown()

    def test_videocasting_dutandchromecastplaybacksync(self):
        ''' refer TC test_VideoCasting_DUTAndChromecastPlaybackSync
        '''
        self._chromecast.launch_youtube_am()
        self._chromecast.play_long_video_background_with_youtube()
        self._chromecast.launch_some_app_wait_5mins()
        self._chromecast.back_youtube_check_long_video()
        self._chromecast.stop_youtube_am()
Esempio n. 2
0
class ChromeCast(UIATestBase):

    def setUp(self):
        super(ChromeCast, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self._chromecast = ChromeCastImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(ChromeCast, self).tearDown()
        self._chromecast.stop_airplane_mode()

    def test_videocasting_airplanemode(self):
        ''' refer TC test_VideoCasting_AirplaneMode
        '''
        self._chromecast.start_airplane_mode_and_open_wifi()
        self._chromecast.launch_youtube_am()
        self._chromecast.play_video_in_youtube()
        self._chromecast.stop_youtube_am()