当前位置: 首页>>代码示例>>Python>>正文


Python GaiaMtbfTestCase.setUp方法代码示例

本文整理汇总了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()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:9,代码来源:test_mtbf_browser_search.py

示例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()
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:9,代码来源:test_mtbf_settings_wifi.py

示例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()
开发者ID:nhirata,项目名称:MTBF-Driver,代码行数:9,代码来源:test_mtbf_browser_cell_data.py

示例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()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:10,代码来源:test_mtbf_camera_capture_video.py

示例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()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:11,代码来源:test_mtbf_cards_view_with_two_apps.py

示例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)
开发者ID:mwargers,项目名称:MTBF-Driver,代码行数:11,代码来源:test_mtbf_cards_view_kill_apps_with_two_apps.py

示例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()
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:11,代码来源:test_mtbf_browser_navigation.py

示例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()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:12,代码来源:test_mtbf_browser_cell_data.py

示例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()
开发者ID:nhirata,项目名称:MTBF-Driver,代码行数:14,代码来源:test_mtbf_browser_bookmark.py

示例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')
开发者ID:nhirata,项目名称:MTBF-Driver,代码行数:8,代码来源:test_mtbf_music_song_3gp.py

示例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()
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:6,代码来源:test_mtbf_settings_bt.py

示例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()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:7,代码来源:test_mtbf_settings_wifi.py

示例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()
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:7,代码来源:test_mtbf_fmradio_turn_on_off.py

示例14: setUp

# 需要导入模块: from mtbf_driver.MtbfTestCase import GaiaMtbfTestCase [as 别名]
# 或者: from mtbf_driver.MtbfTestCase.GaiaMtbfTestCase import setUp [as 别名]
 def setUp(self):
     GaiaMtbfTestCase.setUp(self)
开发者ID:Mozilla-TWQA,项目名称:MTBF-Driver,代码行数:4,代码来源:test_mtbf_settings_bt.py

示例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')
开发者ID:alison-shiue,项目名称:MTBF-Driver,代码行数:8,代码来源:test_mtbf_browser_play_video.py


注:本文中的mtbf_driver.MtbfTestCase.GaiaMtbfTestCase.setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。