public void A1_VerifyLoginWithInValidCrdentails() { UserData userData = ExcelDataAccess.GetTestData("LoginScreen$", "InValidCredentials"); LoginPage_.EnterUserName(userData.Username).EnterPassword(userData.Password).ClickLoginButton(); _logger.Info($": Successfully Entered invalid username {userData.Username}and password {userData.Password} and clicked on login button"); Assert.True(LoginPage_.VerifyInvalidCredentialsAreDisplayed("User ID or Password are incorrect. Please try again or contact the NDB helpdesk")); _logger.Info($": Successfully Verified the message displayed after entering invalid username {userData.Username} and password {userData.Password}"); }
public void A2_VerifyLoginWithValidCrdentails() { UserData userData = ExcelDataAccess.GetTestData("LoginScreen$", "SAHUserValidCredentails"); LoginPage_.EnterUserName(userData.Username).EnterPassword(userData.Password).ClickLoginButton(); _logger.Info($": Successfully Entered valid username {userData.Username} and password {userData.Password} and clicked on login button"); HomePage_.ClickShopAtHomeTab(); _logger.Info($": Successfully CLicked on Shop at Home Tab on homepage"); Assert.True(HomePage_.VerifyShopAtHomeTabIsClicked()); _logger.Info($": Successfully Verfied that Shop at Home tab is clicked on homepage"); HomePage_.Signout(); _logger.Info($": Successfully CLicked on Signout button n homepage"); }