Exemple #1
0
    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')
        # this time we need it locked!
        self.device.lock()
Exemple #2
0
    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)
Exemple #3
0
    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)
Exemple #4
0
    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)
    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()
    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()
    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()
    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()
    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()
    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()
    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()
Exemple #12
0
    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()
    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()
Exemple #14
0
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        # set the system date to an expected date, and timezone to UTC
        self.data_layer.set_time(self._seconds_since_epoch * 1000)
        self.data_layer.set_setting('time.timezone', 'Atlantic/Reykjavik')
Exemple #15
0
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.connect_to_local_area_network()
     self.video_URL = self.marionette.absolute_url('VID_0001.ogg')
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.connect_to_local_area_network()

        self.test_url = self.marionette.absolute_url('mozilla.html')
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        # add track to storage
        self.push_resource('MUS_0001.mp3')
Exemple #18
0
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     # add photo to storage
     self.push_resource('IMG_0001.jpg')
Exemple #19
0
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
Exemple #20
0
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.device.lock()
Exemple #21
0
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.connect_to_local_area_network()
Exemple #22
0
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        # set the system date to an expected date, and timezone to UTC
        self.data_layer.set_time(self._seconds_since_epoch * 1000)
        self.data_layer.set_setting('time.timezone', 'Atlantic/Reykjavik')
Exemple #23
0
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.device.lock()
Exemple #24
0
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        self.homescreen = Homescreen(self.marionette)
        self.apps.switch_to_displayed_app()
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.phone = Phone(self.marionette)
     self.phone.launch()
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        # add track to storage
        self.push_resource('MUS_0001.mp3')
Exemple #27
0
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        # add video to storage
        self.push_resource('MUS_0001.3gp')
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.connect_to_local_area_network()
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        self.push_resource('MUS_0001.mp3')
        self.push_resource('MUS_0001.3gp')
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        self.push_resource('MUS_0001.mp3')
        self.push_resource('MUS_0001.3gp')
Exemple #31
0
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        self.homescreen = Homescreen(self.marionette)
        self.apps.switch_to_displayed_app()
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     # add photo to storage
     self.push_resource('IMG_0001.jpg')
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
     self.connect_to_local_area_network()
     self.video_URL = self.marionette.absolute_url('VID_counter.ogg')
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)

        # add video to storage
        self.push_resource('MUS_0001.3gp')
 def setUp(self):
     GaiaImageCompareTestCase.setUp(self)
Exemple #36
0
    def setUp(self):
        GaiaImageCompareTestCase.setUp(self)
        self.contact = MockContact()

        self.phone = Phone(self.marionette)
        self.phone.launch()