Ejemplo n.º 1
0
 public void Tc_Forgotpassword_003()
 {
     testStarts("Tc_Forgotpassword_003", "Verify forgot password link in the login page");
     openBrowser(URL);
     LoginPage.login(UserName, Password);
     waitForElementToDisplay(OR.Home_Menu_users, 60);
     clickOn(OR.Home_Menu_users);
     waitTime(10);
     UserPage.UserCreate(UserPage.Email, UserPage.UserName, UserPage.Password, UserPage.Password);
     waitForElementToDisplay(OR.AlertSucess, 60);
     verifyElementText(OR.User_CreateSucess, "User created successfully");
     UserPage.verifyUser();
     driver.Quit();
     UserPage.MandrilCreateUser();
     openBrowser(URL);
     LoginPage.login(UserPage.UserName, UserPage.Password);
     clickOn(OR.Home_Logout);
     waitForElementToDisplay(OR.ForgotPassword, 60);
     clickOn(OR.ForgotPassword);
     ForgotPasswordPage.ForgotpasswordFunction(UserPage.UserName);
     waitForElementToDisplay(OR.AlertSucess, 60);
     getText(OR.AlertSucess);
     verifyElementText(OR.AlertSucess, "If a matching Username was found an email was sent to the appropriate email address. If you do not receive an email please contact [email protected]");
     UserPage.MandrilForgotPassword();
     //driver.Navigate().GoToUrl(URL);
     //LoginPage.login(UserName, Password);
 }
Ejemplo n.º 2
0
 public void Tc_Forgotpassword_001()
 {
     testStarts("Tc_Forgotpassword_001", "Verify the forgot password page displays properly");
     openBrowser(URL);
     waitForElementToDisplay(OR.ForgotPassword, 60);
     clickOn(OR.ForgotPassword);
     ForgotPasswordPage.ForgotPasswordpageverification();
 }
Ejemplo n.º 3
0
 public void Tc_ForgotPassword_004()
 {
     testStarts("Tc_ForgotPassword_004", "Verify The validation message without giving email in username field.");
     openBrowser(URL);
     waitForElementToDisplay(OR.ForgotPassword, 60);
     clickOn(OR.ForgotPassword);
     ForgotPasswordPage.ForgotpasswordFunction("");
     waitForElementToDisplay(OR.MandatoryField, 60);
     verifyElement(OR.MandatoryField);
 }
Ejemplo n.º 4
0
 public void Tc_Forgotpassword_002()
 {
     testStarts("Tc_Forgotpassword_002", "Verify the functionality of forgot password with valid Credentials");
     openBrowser(URL);
     waitForElementToDisplay(OR.ForgotPassword, 60);
     clickOn(OR.ForgotPassword);
     ForgotPasswordPage.ForgotpasswordFunction(ForgotPasswordPage.validUserName);
     waitForElementToDisplay(OR.AlertSucess, 60);
     getText(OR.AlertSucess);
     verifyElementText(OR.AlertSucess, "If a matching Username was found an email was sent to the appropriate email address. If you do not receive an email please contact [email protected]");
 }