本文整理汇总了Python中gaiatest.apps.phone.regions.call_screen.CallScreen.reject_call方法的典型用法代码示例。如果您正苦于以下问题:Python CallScreen.reject_call方法的具体用法?Python CallScreen.reject_call怎么用?Python CallScreen.reject_call使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.phone.regions.call_screen.CallScreen
的用法示例。
在下文中一共展示了CallScreen.reject_call方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_receive_call_with_locked_screen
# 需要导入模块: from gaiatest.apps.phone.regions.call_screen import CallScreen [as 别名]
# 或者: from gaiatest.apps.phone.regions.call_screen.CallScreen import reject_call [as 别名]
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)
示例2: test_receive_call_with_locked_screen
# 需要导入模块: from gaiatest.apps.phone.regions.call_screen import CallScreen [as 别名]
# 或者: from gaiatest.apps.phone.regions.call_screen.CallScreen import reject_call [as 别名]
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)
示例3: test_receive_call_with_locked_screen
# 需要导入模块: from gaiatest.apps.phone.regions.call_screen import CallScreen [as 别名]
# 或者: from gaiatest.apps.phone.regions.call_screen.CallScreen import reject_call [as 别名]
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)