Example #1
0
 def test_blank_password(self):
     print("Ran setup")
     user = testdata.get_user('blank_password')
     self.lp.login(user['email'], user['pwd'])
     result = self.lp.login_passwordfield_verification()
     print(result)
     assert result == "This field is required."
Example #2
0
 def test_add_contact(self, LoginSetup):
     print("((((((**********((((((((((((")
     contacts = ContactsPage(LoginSetup)
     contacts.clickContactsMenu()
     contact = testdata.get_user('add_contact1')
     print(contact)
     contacts.addIndvidualContact(contact['custName'], contact['custEmail'],
                                  contact['custCountry'])
Example #3
0
 def test_blank_email(self):
     user = testdata.get_user('blank_email')
     self.lp.login(user['email'], user['pwd'])
     result = self.lp.login_emailfield_verification()
     print(result)
     if user['email'] == "":
         assert result == "This field is required."
     else:
         assert result == "Please enter a valid email address."
Example #4
0
def LoginSetup():
    print("Entered into login class")
    driver = webdriver.Chrome()
    driver.maximize_window()
    baseurl = "https://qa.limecall.com"
    driver.get(baseurl)
    user = testdata.get_user('valid_name')
    lp = LoginPage(driver)
    lp.login(user['email'], user['pwd'])
    result = lp.login_verification()
    assert result == True
    return driver
Example #5
0
 def test_valid_login(self):
     print("Entered")
     user = testdata.get_user('valid_name')
     self.lp.login(user['email'], user['pwd'])
     result = self.lp.login_verification()
     assert result == True
Example #6
0
 def test_invalid_email(self):
     user = testdata.get_user('invalid_email')
     self.lp.login(user['email'], user['pwd'])
     result = self.lp.login_emailfield_verification()
     print(result)
     assert result == "Please enter a valid email address."
Example #7
0
 def test_invalid_error_login(self):
     user = testdata.get_user('invalid_name2')
     self.lp.login(user['email'], user['pwd'])
     result = self.lp.login_verification_negative()
     assert result == True
Example #8
0
 def test_invalid_login(self):
     user = testdata.get_user('invalid_name')
     self.lp.login(user['email'], user['pwd'])
     result = self.lp.login_verification()
     assert result == False