def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.messages = AppMessages(self) self.contacts = AppContacts(self) # # Import some contacts. # self.Contact_1 = MockContacts().Contact_1 self.Contact_2 = MockContacts().Contact_2 self.Contact_3 = MockContacts().Contact_longName self.Contact_4 = MockContacts().Contact_multiplePhones self.Contact_5 = MockContacts().Contact_multipleEmails # Set the one we'll match to have a valie phone number. self.Contact_1["tel"]["value"] = self.UTILS.get_os_variable( "GLOBAL_TARGET_SMS_NUM") self.UTILS.logComment("Using target telephone number " + self.Contact_1["tel"]["value"]) # Set a couple of them to be favorites (including the one we'll use). self.Contact_1["category"] = "favorite" self.Contact_2["category"] = "favorite" # Insert all the contacts. self.data_layer.insert_contact(self.Contact_1) self.data_layer.insert_contact(self.Contact_2) self.data_layer.insert_contact(self.Contact_3) self.data_layer.insert_contact(self.Contact_4) self.data_layer.insert_contact(self.Contact_5)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) # # Set the timeout for element searches. # self.marionette.set_search_timeout(50) self.lockscreen.unlock() # # Get details of our test contact. # self.Contact_1 = MockContacts().Contact_1 # # Store our picture on the device. # self.UTILS.addFileToDevice('./tests/resources/contact_face.jpg', destination='DCIM/100MZLLA')
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) self.messages = AppMessages(self) self.marionette.set_search_timeout(50) self.lockscreen.unlock() self.data_layer.set_setting("vibration.enabled", True) self.data_layer.set_setting("audio.volume.notification", 0) # # Prepare the contact we're going to insert. # self.contact_1 = MockContacts().Roy # # Establish which phone number to use. # self.contact_1["tel"]["value"] = self.UTILS.get_os_variable( "TEST_SMS_NUM", "Mobile number for SMS tests (test 9)") self.UTILS.logComment("Using target telephone number " + self.contact_1["tel"]["value"]) # # Add this contact (quick'n'dirty method - we're just testing sms, no adding a contact). # self.data_layer.insert_contact(self.contact_1)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) self.messages = AppMessages(self) # # Prepare the contact we're going to insert. # self.contact_1 = MockContacts().Contact_1 # # Establish which phone number to use. # self.contact_1["tel"]["value"] = self.UTILS.get_os_variable( "GLOBAL_TARGET_SMS_NUM") self.UTILS.logComment("Using target telephone number " + self.contact_1["tel"]["value"]) # # Add this contact (quick'n'dirty method - we're just testing sms, no adding a contact). # self.data_layer.insert_contact(self.contact_1)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) self.facebook = AppFacebook(self) self.settings = AppSettings(self) # # Set timeout for element searches. # self.marionette.set_search_timeout(50) self.lockscreen.unlock() # # Get details of our test contacts. # self.Contact_1 = MockContacts().Contact_1 # # Set up to use data connection. # self.UTILS.logComment("Not disabling wifi at the moment") # self.data_layer.disable_wifi() self.settings.turn_dataConn_on_if_required()
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) self.email = AppEmail(self) # # # # Get details of our test contacts. # self.Contact_1 = MockContacts().Contact_multipleEmails # # Set the emails to ones that work. # self.Contact_1["email"][0]["value"] = self.UTILS.get_os_variable( "GMAIL_1_EMAIL") self.Contact_1["email"][1]["value"] = self.UTILS.get_os_variable( "GMAIL_2_EMAIL") self.Contact_1["email"][2]["value"] = self.UTILS.get_os_variable( "HOTMAIL_1_EMAIL") # # We're not testing adding a contact, so just stick one # into the database. # self.data_layer.insert_contact(self.Contact_1) self._email_subject = "TEST " + str(time.time()) self._email_message = "Test message"
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) self.facebook = AppFacebook(self) self.settings = AppSettings(self) # # Set timeout for element searches. # self.marionette.set_search_timeout(50) self.lockscreen.unlock() # # Get details of our test contacts. # self.Contact_1 = MockContacts().Contact_1 # # We're not testing adding a contact, so just stick one # into the database. # self.data_layer.insert_contact(self.Contact_1) # # Set up to use data connection. # self.data_layer.disable_wifi() self.settings.turn_dataConn_on_if_required()
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) # # # # Get details of our test contacts. # self.Contact_1 = MockContacts().Contact_1 self.Contact_2 = MockContacts().Contact_2 self.data_layer.insert_contact(self.Contact_1) self.data_layer.insert_contact(self.Contact_2)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) # # # # Get details of our test contacts. # self.Contact_1 = MockContacts().Contact_1 self.Contact_2 = MockContacts().Contact_2 # # We're not testing adding a contact, so just stick one # into the database. # self.data_layer.insert_contact(self.Contact_1)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) self.messages = AppMessages(self) # # Establish which phone number to use. # self.Contact_1 = MockContacts().Contact_1 self.Contact_2 = MockContacts().Contact_2 self.Contact_1["tel"]["value"] = self.UTILS.get_os_variable("GLOBAL_TARGET_SMS_NUM") self.Contact_2["tel"]["value"] = self.UTILS.get_os_variable("GLOBAL_TARGET_SMS_NUM_LONG") self.UTILS.logComment("Using target telephone number " + self.Contact_1["tel"]["value"]) self.UTILS.logComment("Using target telephone number " + self.Contact_2["tel"]["value"]) self.data_layer.insert_contact(self.Contact_1) self.data_layer.insert_contact(self.Contact_2)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.messages = AppMessages(self) self.contacts = AppContacts(self) # # Remove number and add contact. # self.Contact_1 = MockContacts().Contact_1 self.Contact_1["tel"] = None self.data_layer.insert_contact(self.Contact_1)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.messages = AppMessages(self) # # Add contact (with the correct number). # self.Contact_1 = MockContacts().Contact_1 self.Contact_1["tel"]["value"] = self.UTILS.get_os_variable( "GLOBAL_TARGET_SMS_NUM") self.UTILS.logComment("Using target telephone number " + self.Contact_1["tel"]["value"]) self.data_layer.insert_contact(self.Contact_1)
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) # # # # Get details of our test contacts. # self.Contact_1 = MockContacts().Contact_1 self.data_layer.insert_contact(self.Contact_1) self.UTILS.addFileToDevice('./tests/resources/contact_face.jpg', destination='DCIM/100MZLLA')
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) # # Set the timeout for element searches. # # # Get details of our test contact. # self.Contact_1 = MockContacts().Contact_1
def setUp(self): # # Set up child objects... # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) self.contacts = AppContacts(self) self.messages = AppMessages(self) # # Prepare the contact we're going to insert. # self.contact_1 = MockContacts().Contact_1 # # Add this contact (quick'n'dirty method - we're just testing sms, no adding a contact). # self.data_layer.insert_contact(self.contact_1)
def setUp(self): # # (MANDATORY) Classes used by all tests. # GaiaTestCase.setUp(self) self.UTILS = UTILS(self) # # Classes particular to this test case. # self.contacts = AppContacts(self) # # Set the timeout for element searches. # self.marionette.set_search_timeout(50) self.lockscreen.unlock() # # Get details of our test contact. # self.Contact_1 = MockContacts().Contact_1