Exemplo 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()
        self._chromecast.set_environment()

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

    def test_adapter_connection_reboot_dut(self):
        ''' refer TC test_AdapterConnection_PowerCycleDUT
        '''
        self._chromecast.launch_app_am()
        self._chromecast.goto_castscreen()
        self._chromecast.scan_adapter()
        self._chromecast.connect_chromecast()
        self._chromecast.reboot_device()
        self._chromecast.launch_app_am()
        self._chromecast.goto_castscreen()
        self._chromecast.scan_adapter()
        self._chromecast.connect_chromecast()
        self._chromecast.disconnect_chromecast()
        self._chromecast.stop_app_am()
Exemplo 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()
        self._chromecast.set_environment()

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

    def test_adapter_scanning(self):
        ''' refer TC test_AdapterScanning
        '''
        self._chromecast.launch_app_am()
        self._chromecast.goto_castscreen()
        self._chromecast.scan_adapter()
        self._chromecast.stop_app_am()
class ChromeCast(UIATestBase):
    def setUp(self):
        super(ChromeCast, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self._chromecast = ChromeCastImpl()
        self._chromecast.set_environment()

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

    def test_adapter_reconnection(self):
        ''' refer TC test_AdapterReconnection&test_AdapterConnection
        '''
        self._chromecast.launch_app_am()
        self._chromecast.goto_castscreen()
        self._chromecast.reconnect_chromecastx10()
        self._chromecast.stop_app_am()