本文整理汇总了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)
示例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)
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()
示例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)
示例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')
示例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')
示例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()
示例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')
示例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()
示例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')