def tearDown(self): # TODO flush any settings set by the FTU app self.data_layer.disable_wifi() GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if self.app: self.apps.kill(self.app) GaiaTestCase.tearDown(self)
def tearDown(self): # reset to the default wallpaper self.marionette.execute_script( "navigator.mozSettings.createLock().set({'wallpaper.image' : arguments[0]});", [self._default_wallpaper_src] ) GaiaTestCase.tearDown(self)
def tearDown(self): power_button = self.marionette.find_element(*self._power_button_locator) if power_button.get_attribute('data-enabled') == 'true': self.marionette.tap(power_button) GaiaTestCase.tearDown(self)
def tearDown(self): # remove the station from favorite list self.wait_for_element_displayed(*self._favorite_remove_locator) favorite_remove = self.marionette.find_element(*self._favorite_remove_locator) self.marionette.tap(favorite_remove) GaiaTestCase.tearDown(self)
def tearDown(self): # In case the assertion fails this will still kill the call # An open call creates problems for future tests self.data_layer.kill_active_call() GaiaTestCase.tearDown(self)
def tearDown(self): # reset to the default wallpaper self.marionette.execute_script( "navigator.mozSettings.createLock().set({'wallpaper.image' : arguments[0]});", [self._default_wallpaper_src]) GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if hasattr(self, 'app'): self.apps.kill(self.app) GaiaTestCase.tearDown(self)
def tearDown(self): # This will take us back to Everything.Me 'Social' category, from whence cleanUp can return to the home page self.marionette.switch_to_frame() self.marionette.execute_script( "window.wrappedJSObject.dispatchEvent(new Event('home'));") GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if hasattr(self, 'calculator'): self.apps.kill(self.calculator) GaiaTestCase.tearDown(self)
def tearDown(self): # Turn off the radio self.marionette.find_element(*self._power_button_locator).click() if self.app: self.apps.kill(self.app) GaiaTestCase.tearDown(self)
def tearDown(self): # remove the station from favorite list self.wait_for_element_displayed(*self._favorite_remove_locator) favorite_remove = self.marionette.find_element( *self._favorite_remove_locator) self.marionette.tap(favorite_remove) GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if self.app: self.apps.kill(self.app) self.data_layer.disable_wifi() GaiaTestCase.tearDown(self)
def tearDown(self): self.data_layer.set_setting('ril.radio.disabled', False) self.wait_for_condition(lambda m: not self.data_layer.get_setting( 'ril.radio.disabled'), timeout=20, message="Device attached to a mobile network") self.UTILS.test.test(not self.data_layer.get_setting('ril.radio.disabled'), "Radio comms is again enabled.") self.UTILS.reporting.reportResults() GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if self.app: self.apps.kill(self.app) self.apps.uninstall(APP_NAME) GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if hasattr(self, 'app'): self.apps.kill(self.app) self.data_layer.disable_cell_data() GaiaTestCase.tearDown(self)
def tearDown(self): # Switch back to main frame before Marionette loses track bug #840931 self.marionette.switch_to_frame() # In case the assertion fails this will still kill the call # An open call creates problems for future tests self.data_layer.kill_active_call() GaiaTestCase.tearDown(self)
def tearDown(self): GaiaTestCase.tearDown(self) debug_path = os.path.join('debug', self.__class__.__name__, self._testMethodName) for file_name in ['screenshot.png']: file_exists = os.path.isfile(os.path.join(debug_path, file_name)) if self.expect_debug: self.assertTrue(file_exists) else: self.assertFalse(file_exists)
def tearDown(self): if hasattr(self, 'contact'): # Have to switch back to Contacts frame to remove the contact self.marionette.switch_to_frame() self.marionette.switch_to_frame(self.app.frame_id) self.data_layer.remove_contact(self.contact) GaiaTestCase.tearDown(self)
def tearDown(self): if hasattr(self, 'contact'): # Have to switch back to Contacts frame to remove the contact self.marionette.switch_to_frame() self.marionette.switch_to_frame(self.app.frame) self.data_layer.remove_contact(self.contact) GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if hasattr(self, 'app'): self.apps.kill(self.app) if self.wifi: self.data_layer.disable_wifi() GaiaTestCase.tearDown(self)
def tearDown(self): # In case the assertion fails this will still kill the call # An open call creates problems for future tests self.data_layer.kill_active_call() # Also ask Plivo to kill the call if needed if self.call_uuid: self.plivo.hangup_call(self.call_uuid) GaiaTestCase.tearDown(self)
def tearDown(self): # delete the new alarm clock_object.delete_alarm(self) # close the app if hasattr(self, 'app'): self.apps.kill(self.app) GaiaTestCase.tearDown(self)
def tearDown(self): # turn off the radio power_button = self.marionette.find_element(*self._power_button_locator) self.marionette.tap(power_button) # close the app if self.app: self.apps.kill(self.app) GaiaTestCase.tearDown(self)
def tearDown(self): # remove the station from favorite list self.wait_for_element_displayed(*self._favorite_remove_locator) self.marionette.find_element(*self._favorite_remove_locator).click() # close the app if self.app: self.apps.kill(self.app) GaiaTestCase.tearDown(self)
def tearDown(self): # close the app if self.app: self.apps.kill(self.app) if self.wifi: self.data_layer.disable_wifi() self.apps.uninstall(APP_NAME) GaiaTestCase.tearDown(self)
def tearDown(self): # turn off the radio power_button = self.marionette.find_element( *self._power_button_locator) self.marionette.tap(power_button) # close the app if self.app: self.apps.kill(self.app) GaiaTestCase.tearDown(self)
def tearDown(self): GaiaTestCase.tearDown(self) # Disconnect from the ammeter self.ammeter.close() # Turn USB charging back on cmd = [] cmd.append("adb") cmd.append("shell") cmd.append("echo 1 > /sys/class/power_supply/battery/charging_enabled") subprocess.Popen(cmd) time.sleep(1)
def tearDown(self): # Switch back to main frame before Marionette loses track bug #840931 self.marionette.switch_to_frame() # In case an assertion fails this will still kill the call # An open call creates problems for future tests self.data_layer.kill_active_call() # Also ask Plivo to kill the call if needed if self.call_uuid: self.plivo.hangup_call(self.call_uuid) GaiaTestCase.tearDown(self)
def tearDown(self): GaiaTestCase.tearDown(self) xml_output = self.testvars.get('xml_output') debug_path = os.path.join( xml_output and os.path.dirname(xml_output) or 'debug', self.__class__.__name__) for file_name in ['screenshot.png', 'settings.json', 'source.txt']: file_exists = os.path.isfile( os.path.join(debug_path, '%s_%s' % (self._testMethodName, file_name))) if self.expect_debug: self.assertTrue(file_exists) else: self.assertFalse(file_exists)
def tearDown(self): GaiaTestCase.tearDown(self) xml_output = self.testvars.get('xml_output') debug_path = os.path.join( xml_output and os.path.dirname(xml_output) or 'debug', self.__class__.__name__) for file_name in ['screenshot.png']: file_exists = os.path.isfile( os.path.join( debug_path, '%s_%s' % (self._testMethodName, file_name))) if self.expect_debug: self.assertTrue(file_exists) else: self.assertFalse(file_exists)
def tearDown(self): try: GaiaTestCase.tearDown(self) except IOError: print "Expected IOError in tearDown, supressing" # Disconnect from the ammeter self.ammeter.close() # Turn USB charging back on cmd = [] cmd.append("adb") cmd.append("shell") cmd.append("echo 1 > /sys/class/power_supply/battery/charging_enabled") print "Turning charge flag back on" subprocess.Popen(cmd)
def tearDown(self): # In the event that the test fails, a 2nd attempt # switch to marketplace frame and if we are logged in attempt to log out again self.marionette.switch_to_frame() self.marionette.switch_to_frame(self.app.frame) if self.is_element_present(*self._logged_in_locator): # Refresh to get back to the marketplace main page self.marionette.refresh() # click the cog self.marionette.find_element(*self._settings_cog_locator).click() self.wait_for_element_displayed(*self._settings_form_locator) self.marionette.find_element(*self._logout_button).click() if self.wifi: self.data_layer.disable_wifi() GaiaTestCase.tearDown(self)
def tearDown(self): self.apps.uninstall(self.test_data['name']) GaiaTestCase.tearDown(self)
def tearDown(self): self.UTILS.general.remove_files() self.UTILS.reporting.reportResults() GaiaTestCase.tearDown(self)
def tearDown(self): self.UTILS.reporting.reportResults() GaiaTestCase.tearDown(self)
def tearDown(self): # delete the new alarm clock_object.delete_alarm(self) GaiaTestCase.tearDown(self)
def tearDown(self): self.data_layer.set_int_pref('dom.requestSync.minInterval', 100) GaiaTestCase.tearDown(self)
def tearDown(self): GaiaTestCase.tearDown(self)
def tearDown(self): self.plivo.hangup_call(self.call_uuid) GaiaTestCase.tearDown(self)
def tearDown(self): self.apps.uninstall(APP_NAME) GaiaTestCase.tearDown(self)
def tearDown(self): self.data_layer.set_setting('airplaneMode.enabled', False) self.UTILS.reporting.reportResults() GaiaTestCase.tearDown(self)
def tearDown(self): # delete any existing alarms self.data_layer.delete_all_alarms() GaiaTestCase.tearDown(self)