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."
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'])
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."
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
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
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."
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
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