本文整理汇总了Python中mtbf_driver.MtbfTestCase.GaiaMtbfTestCase类的典型用法代码示例。如果您正苦于以下问题:Python GaiaMtbfTestCase类的具体用法?Python GaiaMtbfTestCase怎么用?Python GaiaMtbfTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GaiaMtbfTestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)
示例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()
示例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()
示例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()
示例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()
示例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)
示例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()
示例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()
示例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()
示例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()
示例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)
示例12: tearDown
def tearDown(self):
GaiaMtbfTestCase.tearDown(self)
示例13: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.settings = MTBF_Settings(self.marionette)
self.settings.launch()
示例14: setUp
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.enable_wifi()
self.data_layer.forget_all_networks()
self.data_layer.disable_wifi()
示例15: tearDown
def tearDown(self):
self.device.touch_home_button()
self.device.touch_home_button()
GaiaMtbfTestCase.tearDown(self)