本文整理汇总了Python中mtbf_driver.MtbfTestCase.GaiaMtbfTestCase.setUp方法的典型用法代码示例。如果您正苦于以下问题:Python GaiaMtbfTestCase.setUp方法的具体用法?Python GaiaMtbfTestCase.setUp怎么用?Python GaiaMtbfTestCase.setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mtbf_driver.MtbfTestCase.GaiaMtbfTestCase
的用法示例。
在下文中一共展示了GaiaMtbfTestCase.setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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()
示例2: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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()
示例4: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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()
示例5: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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()
示例6: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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()
示例9: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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()
示例10: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
def setUp(self):
GaiaMtbfTestCase.setUp(self)
# add video to storage
if not self.device.manager.fileExists("/storage/sdcard1/MUS_0001.3gp"):
self.push_resource('MUS_0001.3gp')
示例11: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.settings = MTBF_Settings(self.marionette)
self.settings.launch()
示例12: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.data_layer.enable_wifi()
self.data_layer.forget_all_networks()
self.data_layer.disable_wifi()
示例13: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
def setUp(self):
GaiaMtbfTestCase.setUp(self)
self.fm_radio = MTBF_FmRadio(self.marionette)
self.fm_radio.launch()
示例14: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
def setUp(self):
GaiaMtbfTestCase.setUp(self)
示例15: setUp
# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
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')