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


Python GaiaImageCompareTestCase.setUp方法代码示例

本文整理汇总了Python中gaiatest.gaia_graphics_test.GaiaImageCompareTestCase.setUp方法的典型用法代码示例。如果您正苦于以下问题:Python GaiaImageCompareTestCase.setUp方法的具体用法?Python GaiaImageCompareTestCase.setUp怎么用?Python GaiaImageCompareTestCase.setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gaiatest.gaia_graphics_test.GaiaImageCompareTestCase的用法示例。


在下文中一共展示了GaiaImageCompareTestCase.setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.data_layer.set_time(self._seconds_since_epoch * 1000)
        self.data_layer.set_setting('time.timezone', 'Atlantic/Reykjavik')

        self.today = datetime.datetime.utcfromtimestamp(self._seconds_since_epoch)
        # Determine the name and the year of the next month
        self.next_month_year = self.today.replace(day=1) + datetime.timedelta(days=32)
开发者ID:Anirudh0,项目名称:gaia,代码行数:10,代码来源:test_calendar_flick.py

示例2: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.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:Caracolor,项目名称:gaia,代码行数:11,代码来源:test_cards_view_kill_apps_with_two_apps.py

示例3: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.cards_view = CardsView(self.marionette)

        # Launch the test apps
        for app in self._test_apps:
            self.apps.launch(app)

            # 10 seconds for the actual user using the app a bit, and going back to homescreen
            time.sleep(10)
            self.device.touch_home_button()
开发者ID:AaskaShah,项目名称:gaia,代码行数:13,代码来源:test_cards_view_kill_apps_with_two_apps.py

示例4: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        if not GaiaTestEnvironment(self.testvars).email.get('imap'):
            raise SkipTest('IMAP account details not present in test variables.')
        if not GaiaTestEnvironment(self.testvars).email.get('smtp'):
            raise SkipTest('SMTP account details not present in test variables.')

        GaiaImageCompareTestCase.setUp(self)
        self.connect_to_local_area_network()

        self.email = Email(self.marionette)
        self.email.launch()
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:13,代码来源:test_setup_and_send_receive_imap_email.py

示例5: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.cards_view = CardsView(self.marionette)

        self.contacts = Contacts(self.marionette)
        self.contacts.launch()
        self.gallery = Gallery(self.marionette)
        self.gallery.launch(empty=True)

        # 10 seconds for the actual user using the app a bit, and going back to homescreen
        time.sleep(10)
        self.device.touch_home_button()
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:14,代码来源:test_cards_view_kill_apps_with_two_apps.py

示例6: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.push_resource(self.images, count=self.image_count)

        self.take_screenshot()

        # Launch the test apps
        for app in self._test_apps:
            self.apps.launch(app)
            
            # 10 seconds for the actual user using the app a bit, and going back to homescreen
            time.sleep(10)
            self.device.touch_home_button()
开发者ID:anubhav7495,项目名称:gaia,代码行数:15,代码来源:test_cards_view_with_two_apps.py

示例7: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.push_resource(self.images, count=self.image_count)

        self.take_screenshot()

        # Launch the test apps
        for app in self._test_apps:
            self.apps.launch(app)
            time.sleep(4)
            self.device.touch_home_button()

        # Switch to top level frame before starting the test
        self.marionette.switch_to_frame()
开发者ID:Caracolor,项目名称:gaia,代码行数:16,代码来源:test_cards_view_with_two_apps.py

示例8: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.push_resource(self.images, count=self.image_count)

        self.take_screenshot(top_frame=True)

        self.contacts = Contacts(self.marionette)
        self.contacts.launch()
        # 10 seconds for the actual user using the app a bit, and going back to homescreen
        time.sleep(10)
        self.device.touch_home_button()
        self.gallery = Gallery(self.marionette)
        self.gallery.launch()
        # 10 seconds for the actual user using the app a bit, and going back to homescreen
        time.sleep(10)
        self.device.touch_home_button()
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:18,代码来源:test_cards_view_with_two_apps.py

示例9: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
开发者ID:Anirudh0,项目名称:gaia,代码行数:4,代码来源:test_lockscreen_unlock_to_homescreen_with_passcode.py

示例10: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        self.push_resource('MUS_0001.mp3')
        self.push_resource('MUS_0001.3gp')
开发者ID:sergecodd,项目名称:gaia,代码行数:7,代码来源:test_music_fullplay_songview.py

示例11: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.connect_to_local_area_network()
     self.video_URL = self.marionette.absolute_url('VID_counter.ogg')
开发者ID:Cwiiis,项目名称:gaia,代码行数:6,代码来源:test_browser_play_video.py

示例12: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.connect_to_local_area_network()
开发者ID:Neo20067,项目名称:gaia,代码行数:5,代码来源:test_marketplace_download_execute_map_app.py

示例13: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        # add track to storage
        self.push_resource('MUS_0001.mp3')
开发者ID:ruvsmirnov,项目名称:gaia,代码行数:7,代码来源:test_music_album_mp3.py

示例14: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.phone = Phone(self.marionette)
     self.phone.launch()
开发者ID:AaskaShah,项目名称:gaia,代码行数:6,代码来源:test_phone_select_toolbars.py

示例15: setUp

# 需要导入模块: from gaiatest.gaia_graphics_test import GaiaImageCompareTestCase [as 别名]
# 或者: from gaiatest.gaia_graphics_test.GaiaImageCompareTestCase import setUp [as 别名]
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.connect_to_local_area_network()

        self.test_url = self.marionette.absolute_url('mozilla.html')
开发者ID:Anirudh0,项目名称:gaia,代码行数:7,代码来源:test_browser_navigation.py


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