本文整理汇总了Python中mtbf_driver.MtbfTestCase.GaiaMtbfTestCase类的典型用法代码示例。如果您正苦于以下问题:Python GaiaMtbfTestCase类的具体用法?Python GaiaMtbfTestCase怎么用?Python GaiaMtbfTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GaiaMtbfTestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: tearDown
def tearDown(self):
# In case the assertion fails this will still kill the call
# An open call creates problems for future tests
self.data_layer.kill_active_call()
GaiaMtbfTestCase.tearDown(self)
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:7,代码来源:test_mtbf_call_log_all_calls.py
示例2: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.enable_wifi()
self.data_layer.forget_all_networks()
self.data_layer.disable_wifi()
self.settings = MTBF_Settings(self.marionette)
self.settings.launch()
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:7,代码来源:test_mtbf_settings_wifi.py
示例3: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.enable_wifi()
self.connect_to_local_area_network()
self.search = Search(self.marionette)
self.search.launch()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:7,代码来源:test_mtbf_browser_search.py
示例4: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer = GaiaData(self.marionette)
self.data_layer.connect_to_cell_data()
self.browser = Browser(self.marionette)
self.browser.launch()
开发者ID:nhirata,项目名称:MTBF-Driver,代码行数:7,代码来源:test_mtbf_browser_cell_data.py
示例5: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
# Turn off geolocation prompt
self.apps.set_permission('Camera', 'geolocation', 'deny')
self.camera = Camera(self.marionette)
self.camera.launch()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:8,代码来源:test_mtbf_camera_capture_video.py
示例6: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.cards_view = CardsView(self.marionette)
# Launch the test apps
for app in self._test_apps:
self.apps.launch(app)
# Let's wait a bit for the app to fully launch
time.sleep(2)
开发者ID:mwargers,项目名称:MTBF-Driver,代码行数:9,代码来源:test_mtbf_cards_view_kill_apps_with_two_apps.py
示例7: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.enable_wifi()
self.connect_to_local_area_network()
self.test_url = self.marionette.absolute_url('mozilla.html')
self.search = Search(self.marionette)
self.search.launch()
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:9,代码来源:test_mtbf_browser_navigation.py
示例8: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
# Launch the test apps
for app in self._test_apps:
self.apps.launch(app)
# Switch to top level frame before starting the test
self.marionette.switch_to_frame()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:9,代码来源:test_mtbf_cards_view_with_two_apps.py
示例9: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.disable_wifi()
self.data_layer.disable_cell_data()
self.data_layer = GaiaData(self.marionette)
self.data_layer.connect_to_cell_data()
self.search = Search(self.marionette)
self.search.launch()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:10,代码来源:test_mtbf_browser_cell_data.py
示例10: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.connect_to_network()
self.test_url = 'http://mozqa.com/data/firefox/layout/mozilla.html'
curr_time = repr(time.time()).replace('.', '')
self.bookmark_title = 'gaia%s' % curr_time[10:]
self.homescreen = Homescreen(self.marionette)
self.browser = Browser(self.marionette)
self.browser.launch()
开发者ID:nhirata,项目名称:MTBF-Driver,代码行数:12,代码来源:test_mtbf_browser_bookmark.py
示例11: tearDown
def tearDown(self):
# make sure it goes back to the top for activating editing mode
self.device.touch_home_button()
self.device.touch_home_button()
# delete the bookmark
self.apps.switch_to_displayed_app()
self.homescreen.activate_edit_mode()
self.confirm_dialog = self.homescreen.installed_app(self.bookmark_title).tap_delete_app()
self.confirm_dialog.tap_confirm()
self.data_layer.disable_wifi()
GaiaMtbfTestCase.tearDown(self)
开发者ID:nhirata,项目名称:MTBF-Driver,代码行数:13,代码来源:test_mtbf_browser_bookmark.py
示例12: tearDown
def tearDown(self):
GaiaMtbfTestCase.tearDown(self)
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:2,代码来源:test_mtbf_settings_bt.py
示例13: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.settings = MTBF_Settings(self.marionette)
self.settings.launch()
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:4,代码来源:test_mtbf_settings_bt.py
示例14: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.enable_wifi()
self.data_layer.forget_all_networks()
self.data_layer.disable_wifi()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:5,代码来源:test_mtbf_settings_wifi.py
示例15: tearDown
def tearDown(self):
self.device.touch_home_button()
self.device.touch_home_button()
GaiaMtbfTestCase.tearDown(self)
开发者ID:mwargers,项目名称:MTBF-Driver,代码行数:4,代码来源:test_mtbf_cards_view_kill_apps_with_two_apps.py
示例16: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.fm_radio = MTBF_FmRadio(self.marionette)
self.fm_radio.launch()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:5,代码来源:test_mtbf_fmradio_turn_on_off.py
示例17: tearDown
def tearDown(self):
self.data_layer.disable_wifi()
GaiaMtbfTestCase.tearDown(self)
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:3,代码来源:test_mtbf_browser_search.py
示例18: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.marionette.switch_to_frame()
self.device.turn_screen_off()
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:4,代码来源:test_dummy_case.py
示例19: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.enable_wifi()
self.connect_to_local_area_network()
self.push_resource('VID_0001.ogg')
self.video_URL = self.marionette.absolute_url('VID_0001.ogg')
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:6,代码来源:test_mtbf_browser_play_video.py
示例20: tearDown
def tearDown(self):
self.data_layer.disable_cell_data()
GaiaMtbfTestCase.tearDown(self)
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:3,代码来源:test_mtbf_browser_clear_browsing_history.py
注:本文中的mtbf_driver.MtbfTestCase.GaiaMtbfTestCase类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论