def test_receive_call_with_locked_screen(self): """ Verify that the User can receive a call whilst the device is locked https://moztrap.mozilla.org/manage/case/1300/ """ PLIVO_TIMEOUT = 30 self.call_uuid = False from gaiatest.utils.plivo.plivo_util import PlivoUtil self.plivo = PlivoUtil( self.testvars['plivo']['auth_id'], self.testvars['plivo']['auth_token'], self.testvars['plivo']['phone_number'] ) self.device.lock() self.call_uuid = self.plivo.make_call( to_number=self.testvars['carrier']['phone_number'].replace('+', ''), timeout=PLIVO_TIMEOUT) # Wait for the incoming call screen to show up call_screen = CallScreen(self.marionette) call_screen.wait_for_incoming_call_with_locked_screen() # Reject the call call_screen.reject_call() # Check that the screen is still locked self.assertTrue(self.device.is_locked)
def test_receive_call_with_locked_screen(self): """ Verify that the User can receive a call whilst the device is locked https://moztrap.mozilla.org/manage/case/1300/ """ PLIVO_TIMEOUT = 30 self.call_uuid = False from gaiatest.utils.plivo.plivo_util import PlivoUtil self.plivo = PlivoUtil(self.testvars['plivo']['auth_id'], self.testvars['plivo']['auth_token'], self.testvars['plivo']['phone_number']) self.device.lock() self.call_uuid = self.plivo.make_call( to_number=self.testvars['carrier']['phone_number'].replace( '+', ''), timeout=PLIVO_TIMEOUT) # Wait for the incoming call screen to show up call_screen = CallScreen(self.marionette) call_screen.wait_for_incoming_call_with_locked_screen() # Reject the call call_screen.reject_call() # Check that the screen is still locked self.assertTrue(self.device.is_locked)
def test_receive_call_with_locked_screen(self): """ Verify that the User can receive a call whilst the device is locked https://moztrap.mozilla.org/manage/case/1300/ """ self.call_uuid = False from gaiatest.utils.plivo.plivo_util import PlivoUtil self.plivo = PlivoUtil( self.testvars['plivo']['auth_id'], self.testvars['plivo']['auth_token'], self.testvars['plivo']['phone_number'] ) self.device.lock() self.call_uuid = self.plivo.make_call( to_number=self.testvars['local_phone_numbers'][0].replace('+', '')) call_screen = CallScreen(self.marionette) call_screen.wait_for_incoming_call() call_screen.reject_call() self.plivo.wait_for_call_completed(self.call_uuid) self.call_uuid = None self.assertTrue(self.device.is_locked)
def test_receive_call_with_locked_screen(self): """Make a phone call from Plivo to the phone.""" PLIVO_TIMEOUT = 30 self.call_uuid = False self.plivo = PlivoUtil( self.testvars['plivo']['auth_id'], self.testvars['plivo']['auth_token'], self.testvars['plivo']['phone_number'] ) self.device.lock() self.call_uuid = self.plivo.make_call( to_number=self.testvars['carrier']['phone_number'].replace('+', ''), timeout=PLIVO_TIMEOUT) # Wait for the incoming call screen to show up call_screen = CallScreen(self.marionette) call_screen.wait_for_incoming_call_with_locked_screen() # Reject the call call_screen.reject_call() # Check that the screen is still locked self.assertTrue(self.device.is_locked)
def test_receive_call_with_locked_screen(self): """Make a phone call from Plivo to the phone.""" PLIVO_TIMEOUT = 30 self.call_uuid = False from gaiatest.utils.plivo.plivo_util import PlivoUtil self.plivo = PlivoUtil(self.testvars['plivo']['auth_id'], self.testvars['plivo']['auth_token'], self.testvars['plivo']['phone_number']) self.device.lock() self.call_uuid = self.plivo.make_call( to_number=self.testvars['carrier']['phone_number'].replace( '+', ''), timeout=PLIVO_TIMEOUT) # Wait for the incoming call screen to show up call_screen = CallScreen(self.marionette) call_screen.wait_for_incoming_call_with_locked_screen() # Reject the call call_screen.reject_call() # Check that the screen is still locked self.assertTrue(self.device.is_locked)
def test_receive_call_with_locked_screen(self): """ Verify that the User can receive a call whilst the device is locked https://moztrap.mozilla.org/manage/case/1300/ """ self.call_uuid = False from gaiatest.utils.plivo.plivo_util import PlivoUtil self.plivo = PlivoUtil( self.testvars['plivo']['auth_id'], self.testvars['plivo']['auth_token'], self.testvars['plivo']['phone_number'] ) self.device.lock() self.call_uuid = self.plivo.make_call( to_number=self.environment.phone_numbers[0].replace('+', '')) call_screen = CallScreen(self.marionette) call_screen.wait_for_incoming_call() call_screen.reject_call() self.plivo.wait_for_call_completed(self.call_uuid) self.call_uuid = None self.assertTrue(self.device.is_locked)