public void ProfilePage_UpdatePassword_WS_1334() { if (!DataParser.ReturnExecution("WS_1334")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1334.xml"; string password = GeneralData.GetPassword(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); var editProfile = home.EditProfile(); editProfile.EnterPassword(password).EnterConfirmationPwd(password).ClickSubmit(); Assert.AreEqual("Invalid Data - Password must have at least: 1 numeric characters, but only has: 0", editProfile.GetErrorMsg(), "Error Msg is not show or its wrong"); } }
public void Settings_UpdatePassword_WS_1347() { if (!DataParser.ReturnExecution("WS_1347")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1347.xml"; string password = GeneralData.GetPassword(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); var editProfile = home.EditProfile(); editProfile.EnterPassword(password).EnterConfirmationPwd(password).ClickSubmit(); Assert.AreEqual("Settings Successfully Saved!", editProfile.GetSuccessMsg(), "Error Msg is not show or its wrong"); home = editProfile.ClickOK().ClickSignOut().Logon().ClickLogin(); Assert.AreEqual("Welcome Tester to the BAE Systems, IMPACT!", home.GetWelcomeTitle(), "You are not in the Main Page"); } }
public void Profile_UpdatePhotoAvatar_WS_1059() { if (!DataParser.ReturnExecution("WS_1059")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1059.xml"; string path = GeneralData.path(_file); int width = GeneralData.width(_file), height = GeneralData.height(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); var a = home.EditProfile(); a.ClickUploadphoto(); SendKeys.SendWait(path); SendKeys.SendWait("{ENTER}"); int b = width * height; var c = a.getsizeuploadim(); Assert.AreNotEqual(b, c, "The size is the same so,the image is not changed"); } }