示例#1
0
 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");
     }
 }
示例#2
0
 public void Profile_UpdatingFields_WS_175()
 {
     if (!DataParser.ReturnExecution("WS_175"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_175.xml";
         string          preferredName = RegisterData.GetRegisterPreferedName(_file);
         EditProfilePage profilePage   = InitialPage.Go().Logon().ClickLogin().EditProfile();
         Assert.AreEqual("Profile Settings", profilePage.GetTitleName("Profile Settings"),
                         "Title is now well spell");
         profilePage.EnterPreferedName(preferredName).ClickSubmit();
         Assert.AreEqual(preferredName, profilePage.GetShowName(preferredName), "Prefered Name is now well spell");
         MainHomePage mainPage = profilePage.NavigateToHomePage();
         Assert.AreEqual("Welcome " + preferredName + " to the BAE Systems, IMPACT!", mainPage.GetWelcomeTitle(),
                         "Welcome Ttile is now well spell");
     }
 }